Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs(desktop): 同步 handleStreamEvent 注释到 handleStatusUpdate 新逻辑

Shinkudb2ebca3d0ab
diff --git a/apps/desktop/src/renderer/lib/makerChatStore.ts b/apps/desktop/src/renderer/lib/makerChatStore.ts
index 319091e9fb..c50066cd7c 100644
--- a/apps/desktop/src/renderer/lib/makerChatStore.ts
+++ b/apps/desktop/src/renderer/lib/makerChatStore.ts
@@ -4701,8 +4701,8 @@ export function handleStreamEvent(
// stopped(interrupt 杀掉)不置位——不会有 wake turn 跟进,置了就永久转圈。
// 任务终态若在主 turn 仍 running 时到达,仍置桥接标记,让 Done 后的
// hasBackgroundAgentWork 返回 true,阻止 ChatInput 用不完整上下文发起预测。
- // 后续 wake turn 启动时 handleStatusUpdate 会清除 pendingTaskWake(见该
- // 函数中 pendingTaskWake: false),桥接不会永久撑住 running 快照。
+ // 后续 wake turn 启动(isRunning:true)时 handleStatusUpdate 通过
+ // isTurnStart 分支清除 pendingTaskWake,桥接不会永久撑住 running 快照。
const wakesAfterTerminal =
(merged.status === 'completed' || merged.status === 'failed') &&
isWakeAgentTask(merged);