diff --git a/src/auto-reply/reply/agent-runner-execution.ts b/src/auto-reply/reply/agent-runner-execution.ts index 9998cca29d3..1b7e486a446 100644 --- a/src/auto-reply/reply/agent-runner-execution.ts +++ b/src/auto-reply/reply/agent-runner-execution.ts @@ -430,7 +430,15 @@ export async function runAgentTurnWithFallback(params: { replyToCurrent: true, isCompactionNotice: true, }); - await params.opts.onBlockReply(noticePayload); + try { + await params.opts.onBlockReply(noticePayload); + } catch (err) { + // Non-critical notice delivery failure should not + // bubble out of the fire-and-forget event handler. + logVerbose( + `compaction start notice delivery failed (non-fatal): ${String(err)}`, + ); + } } } const completed = evt.data?.completed === true;