Skip to content

Commit cfc6e93

Browse files
TDanks2000claude
andcommitted
test(preview): assert the second thread keeps its own current tab
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 66bfdf5 commit cfc6e93

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/server/src/mcp/PreviewAutomationBroker.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,11 +1531,13 @@ it.effect("keeps each thread's current tab when threads share a provider session
15311531
yield* broker.invoke({ scope, operation: "open", input: {} });
15321532
yield* broker.invoke({ scope: otherThread, operation: "snapshot", input: {} });
15331533
yield* broker.invoke({ scope, operation: "snapshot", input: {} });
1534+
yield* broker.invoke({ scope: otherThread, operation: "snapshot", input: {} });
15341535

15351536
expect(routed.map(({ threadId, tabId }) => [threadId, tabId])).toEqual([
15361537
["thread-1", undefined],
15371538
["thread-2", undefined],
15381539
["thread-1", "tab-thread-1"],
1540+
["thread-2", "tab-thread-2"],
15391541
]);
15401542
// Each thread's agent owns its own tabs and tab budget.
15411543
expect(routed[0]!.agentSessionId).not.toBe(routed[1]!.agentSessionId);

0 commit comments

Comments
 (0)