Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): 保留 onSessionClosed 调用形态以满足热路径顺序断言
Dash2ccf88998c05
diff --git a/apps/desktop/src/main/maker-ipc/register.ts b/apps/desktop/src/main/maker-ipc/register.tsindex 3d4b9b2b5a..cbf1bec88f 100644--- a/apps/desktop/src/main/maker-ipc/register.ts+++ b/apps/desktop/src/main/maker-ipc/register.ts@@ -5327,13 +5327,14 @@ const sessionBindings = createSessionBindingLifecycle<WiredSession, WiredSession// Read at the coordinator boundary, as before: only a close/rebuild window// preserves the signal currently driving that rebuild, not the old queue.shouldPreserveInputBoundary: () => rehydrateCloseSuppression.isSuppressed(session.id),- closeInputCoordinator: (options) => {- agentInputCoordinatorHolder?.onSessionClosed(session.id, {- ...options,+ closeInputCoordinator: (boundaryOptions) => {+ const options = {+ ...boundaryOptions,// Requested / rebuild closes own their follow-up; a self-close has no// done event, so queued user input would otherwise wait forever.wakeQueuedInput: context.closeReason === 'unexpected',- });+ };+ agentInputCoordinatorHolder?.onSessionClosed(session.id, options);},cleanupRuntimeState: () => cleanupClosedSessionRuntime(session),});