From 61304605de5d1d0cfd1cef73efbbd144afde575b Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Tue, 13 Oct 2026 22:07:09 -0700 Subject: [PATCH] fix(native-chat): give the chat option write its clock #27826 built the option-write context without a clock, and #28268 then made the permission-mode path read ctx.now(). The two merged independently, so main fails typecheck and a permission pick written through this path would throw. --- .../structured-agent-session-message-options.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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..b8d5c4d1ffa2 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 @@ -24,7 +24,8 @@ export async function writeStructuredAgentSessionOption( context.deps.store .replaceSessionOptions({ sessionId, fence, options, now: context.now() }) .then(() => undefined), - publish: () => session && context.publish(sessionId, session.journal) + publish: () => session && context.publish(sessionId, session.journal), + now: () => context.now() } if (input.key === AGENT_CHAT_PERMISSION_MODE_OPTION_ID || !session?.child) { return recordStructuredAgentSessionOptionIntent(context.deps, ctx, input)