Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(local-agent): 检查后台发送结果是否已派发
david5d1b3d7561cf
diff --git a/apps/desktop/src/main/local-agent/runtime.ts b/apps/desktop/src/main/local-agent/runtime.tsindex 61a115d088..6ec326a92f 100644--- a/apps/desktop/src/main/local-agent/runtime.ts+++ b/apps/desktop/src/main/local-agent/runtime.ts@@ -4,6 +4,7 @@ import path from 'node:path';import { randomUUID } from 'node:crypto';import {LOCAL_AGENT_CLIENT,+ assertSendDispatched,type Maker,type AgentEvent,type Session,@@ -370,7 +371,10 @@ export async function openLocalAgentRuntime(preparing = false;projection.begin();// Some harnesses await the entire turn; acceptance must not block tool delivery/control RPCs.- void handle.send(content).catch(() => {+ void (async () => {+ const result = await handle.send(content);+ assertSendDispatched(result, 'local-agent/send');+ })().catch(() => {if (!closed && epoch === current) {busy = false;projection.fail(localize('EXECUTION_FAILED', 'Cindy 未能完成本次发送。'));