From 681f279e637ef6687201b14d01c4fc2ffef4abcf Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Thu, 12 Nov 2026 19:04:32 -0800 Subject: [PATCH] fix(orchestration): verify status work without active mail custody --- .../mailbox/routing/slept-mailbox-wake.test.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts b/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts index d5cd66a62b6..7c18ebe86e1 100644 --- a/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts +++ b/src/main/runtime/orchestration/mailbox/routing/slept-mailbox-wake.test.ts @@ -583,7 +583,23 @@ it.each([10, 100])( newest.mock.results.filter((result) => result.value !== undefined).length ).toBeLessThanOrEqual(3) expect(newest).toHaveBeenCalled() - session = { ...session, sleepingAgentSessionsByPaneKey: {} } + session = { + ...session, + sleepingAgentSessionsByPaneKey: Object.fromEntries( + Object.keys(records).map((key) => [ + key, + new Proxy( + { ...record, paneKey: key }, + { + get(target, property, receiver) { + visits++ + return Reflect.get(target, property, receiver) + } + } + ) + ]) + ) + } sessionWritten('local') await settled() visits = 0