Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(plugin): 让焦点重试进入主任务归一
DavidShen6f48096f2b1a
diff --git a/apps/desktop/src/main/cindy-brain/index.ts b/apps/desktop/src/main/cindy-brain/index.tsindex af6f65a5ca..8c8ad882b8 100644--- a/apps/desktop/src/main/cindy-brain/index.ts+++ b/apps/desktop/src/main/cindy-brain/index.ts@@ -1913,11 +1913,12 @@ const ghostPrimarySessionFocusTracker = createGhostPrimarySessionFocusTracker(),(sessionId, claim) => notifyGhostSessionEvent('switched', { sessionId }, claim),);-const ghostSessionFocusTracker = createGhostSessionFocusTracker((sessionId) =>- ghostPrimarySessionFocusTracker.note(sessionId),-);+// 原始焦点只供 preview 使用;不能用它的 raw-id 去重阻断 primary tracker 的重试。+const ghostSessionFocusTracker = createGhostSessionFocusTracker(() => {});export function noteGhostSessionFocused(sessionId: string | null): void {- if (sessionId === null) ghostPrimarySessionFocusTracker.note(null);+ // 两个 tracker 都必须收到每次上报:raw tracker 负责 preview,primary tracker+ // 负责 Worker → Lead 归一、异步乱序和失败后的重试。+ ghostPrimarySessionFocusTracker.note(sessionId);ghostSessionFocusTracker.note(sessionId);}