Skip to content

Commit 85cd3b0

Browse files
committed
fix(daemon): route session.diffs through startInstance
Keeps instance.status consistent with the registry subscription. Matches the executeJob pattern so session.diffs is no longer the only handler that creates a subscription without updating state.
1 parent 6d85b2c commit 85cd3b0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/daemon/src/server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,7 @@ export class Daemon {
563563
private async handleSessionDiffs(
564564
request: RequestByMethod<"session.diffs">,
565565
): Promise<SessionDiffsResult> {
566-
const instance = this.store.assertInstance(
567-
this.state,
568-
request.params.instanceId,
569-
);
566+
const instance = await this.startInstance(request.params.instanceId);
570567
const runtime = await this.registry.ensureStarted(
571568
instance.id,
572569
instance.directory,

0 commit comments

Comments
 (0)