diff --git a/src/main/native-chat/agent-session-wire/host/testing/structured-agent-session-attention-reads.test.ts b/src/main/native-chat/agent-session-wire/host/testing/structured-agent-session-attention-reads.test.ts index 08ec9fad585..ccd176ee6ed 100644 --- a/src/main/native-chat/agent-session-wire/host/testing/structured-agent-session-attention-reads.test.ts +++ b/src/main/native-chat/agent-session-wire/host/testing/structured-agent-session-attention-reads.test.ts @@ -206,6 +206,8 @@ it('acknowledges a post-rewind completion after normal idle retirement without r ...origin, scope: { ...origin.scope, workspaceId: 'another-workspace' } }) + // The idle sweep keeps a chat whose delivery loop has not parked after the second send. + await rig.host.collaboratorsForTests().conversationDelivery.loop.wake(SESSION) rig.clock.now += IDLE_MS + 1 await sweepOnce(rig.host) await vi.waitFor(() => expect(rig.host.hasSession(SESSION)).toBe(false))