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}`,