From 798020f0bf1190d46c4c5d0195d84fd88a9ebb60 Mon Sep 17 00:00:00 2001 From: Sawyer Date: Thu, 17 Sep 2026 21:18:20 -0700 Subject: [PATCH] fix(hub): sidecar outbound mail persists through the mailbox-wrapped persist (CL-8429) The sidecar router captured the plain session lookups before the mailbox wrapper existed, so an agent's first reply threw on the missing session and never reached @corbits/mailbox. Point the shared lookups at the wrapped persist, the same one the mailbox route and cron use. --- apps/hub/src/server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/hub/src/server.ts b/apps/hub/src/server.ts index c0f685b78e..0e6e8ac32a 100644 --- a/apps/hub/src/server.ts +++ b/apps/hub/src/server.ts @@ -478,6 +478,9 @@ export async function createHubServer({ bus: mailboxBus, }), }; + // The sidecar router captured `lookups` before this wrapper existed; an + // agent's outbound mail must also land in principal inboxes. + lookups.persistMail = mailboxLookups.persistMail; const artifactContentStore = InlineContentStore;