Skip to content

Commit b5d05a6

Browse files
t3dotggclaude
andcommitted
test(home): the hold and interrupt for a replaced Home use distinct command ids
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 24ef069 commit b5d05a6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/server/src/home/HomeService.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ it.effect("turning Home off holds the old Home's queue, then stops its run", ()
205205
{ type: "queue.hold", threadId: busy },
206206
{ type: "run.interrupt", threadId: busy },
207207
]);
208+
// Each command needs its own id; a reused id would replay the hold's receipt.
209+
expect(dispatched[0]?.commandId).not.toBe(dispatched[1]?.commandId);
208210
}).pipe(Effect.provide(layer));
209211
});
210212

0 commit comments

Comments
 (0)