Skip to content

Commit 6485d35

Browse files
test(client-runtime): guard the projection runtime for a bound thread that never ran
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c4f943a commit 6485d35

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎packages/client-runtime/src/state/threadExecution.test.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,14 @@ describe("deriveRunlessWorkStartedAt", () => {
449449
};
450450

451451
it("times a provider-native subagent from its runless root turn while it works", () => {
452-
const projection = { ...nativeChild, nodes: [rootTurn("running", later)] };
452+
const projection = {
453+
...nativeChild,
454+
thread: {
455+
...nativeChild.thread,
456+
activeProviderThreadId: ProviderThreadId.make("native-child"),
457+
},
458+
nodes: [rootTurn("running", later)],
459+
};
453460
expect(deriveRunlessWorkStartedAt(projection)).toBe("2026-07-28T10:05:00.000Z");
454461
expect(deriveThreadRuntime(projection)).toBeNull();
455462
});

0 commit comments

Comments
 (0)