From 4fd23699099bdd8f1a494ae5f62cf58c40cadfbd Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 13 Oct 2026 22:09:55 -0700 Subject: [PATCH] fix(native-chat): pass the clock to a recorded option pick #27826 and #28268 crossed: the option-intent writer now needs `now`, and the message-options context didn't supply it, breaking main's typecheck. Co-Authored-By: Claude --- .../structured-agent-session-message-options.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/native-chat/agent-session-wire/structured-agent-session-message-options.ts b/src/main/native-chat/agent-session-wire/structured-agent-session-message-options.ts index 449b45677942..95473c9df6e6 100644 --- a/src/main/native-chat/agent-session-wire/structured-agent-session-message-options.ts +++ b/src/main/native-chat/agent-session-wire/structured-agent-session-message-options.ts @@ -20,6 +20,7 @@ export async function writeStructuredAgentSessionOption( sessionId, fence, adapter: context.deps.adapter, + now: context.now, persistOptions: (options: Readonly>) => context.deps.store .replaceSessionOptions({ sessionId, fence, options, now: context.now() })