From 5cb595fb2eadbe070a85f5aec7557b0ab42046b3 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Mon, 14 Sep 2026 14:22:57 -0700 Subject: [PATCH] fix(native-chat): route rejected late dispatch settlements --- src/main/runtime/structured-agent-session-runtime.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/runtime/structured-agent-session-runtime.ts b/src/main/runtime/structured-agent-session-runtime.ts index e437739a58b..92643fcae57 100644 --- a/src/main/runtime/structured-agent-session-runtime.ts +++ b/src/main/runtime/structured-agent-session-runtime.ts @@ -7,7 +7,6 @@ // reads is module-level for the same reason the registry is — the runtime // service is already far past its size budget. -import type { AgentJournalItemIdentity } from '../../shared/agent-session-journal-types' import { existsSync } from 'node:fs' import { join } from 'node:path' import type { AgentSessionRecord } from '../../shared/agent-session-record' @@ -247,11 +246,9 @@ async function install(deps: StructuredAgentSessionRuntimeDeps): Promise { + const onDispatchSettledLate = ( + settlement: Parameters[0] + ): void => { void host?.settleLateDispatch(settlement).catch((error) => deps.onError?.({ scope: `structured-agent-session-late-settlement:${settlement.sessionId}`,