Skip to content

Commit 276f36d

Browse files
Aleexc12chenxin-yan
authored andcommitted
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 734aaa9 commit 276f36d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/daemon/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export class Daemon {
557557
private async handleSessionDiffs(
558558
request: RequestByMethod<"session.diffs">,
559559
): Promise<SessionDiffsResult> {
560-
const instance = this.store.assertInstance(request.params.instanceId);
560+
const instance = await this.startInstance(request.params.instanceId);
561561
const runtime = await this.registry.ensureStarted(
562562
instance.id,
563563
instance.directory,

0 commit comments

Comments
 (0)