Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function createPressDevice(verdict: TargetHittability | (() => Promise<TargetHit
};
const device = createAgentDevice({
backend,
artifacts: createLocalArtifactAdapter(),
artifacts: createLocalArtifactAdapter({ cwd: process.cwd() }),
sessions: createMemorySessionStore([{ name: 'default', snapshot: TREE }]),
policy: localCommandPolicy(),
});
Expand Down
7 changes: 1 addition & 6 deletions packages/daemon/src/server/request-execution-scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,12 +840,7 @@ function contextFromRequestFlags(
};
}

/**
* The per-`LeaseRegistry` execution-lock map a request's session and device locks are taken from.
* Exported because the #2833 session-idle reaper expires sessions through this same map: an expiry
* that did not wait on the session's execution lock could tear down a session mid-command, and a
* second map would make that race invisible rather than impossible.
*/
/** The idle reaper shares these locks so expiry cannot tear down an active request. */
export function getLeaseRegistryExecutionLocks(
leaseRegistry: LeaseRegistry,
): Map<string, Promise<unknown>> {
Expand Down
Loading