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。

merge: 同步 main(5190fead4),解决 sessions:list 冲突

WZBbiaoa4786fd9787f
diff --cc apps/desktop/src/main/localDb/ipc/sessions.ts
index eeb75d818c,0f307ba8ed..d6d7d86bd5
--- a/apps/desktop/src/main/localDb/ipc/sessions.ts
+++ b/apps/desktop/src/main/localDb/ipc/sessions.ts
@@@ -1319,9 -1400,11 +1400,12 @@@ export function registerSessionIpc
// sidebar-card-mode: 首次 list(db 必然 ready)触发一次置顶摘要回填——
// 老置顶会话没有 turn-done 触发点。模块内部 once 守卫 + 串行 + swallow。
void import('../../sessionTaskSummary.js').then((m) => m.backfillPinnedSessionSummaries());
- // 首次 list 即账号库就绪:预热 session 标记索引(后台隐藏 + 消息免打扰),
- // 首次 list 即账号库就绪:预热插件后台任务索引,灵动岛/通知的同步判定从此可用。
- void ensureHiddenSessionRegistryLoaded();
++ // 首次 list 即账号库就绪:预热 session 标记索引(插件后台隐藏 + 消息免打扰),
+ // 灵动岛/通知的同步判定从此可用。
+ void ensureSessionFlagRegistryLoaded();
+ // 同一时机清掉上次运行没来得及删的未发送任务;先等它清完再读列表,残留不会被列出来。
+ // 每个账号库只真正清理一次,之后直接返回同一个结果。
+ await sweepLeftoverProvisionalSessions().catch(() => undefined);
const cap = clampLimit(limit, 20);
const includePinned = shouldIncludePinnedSessions(options);
const fresh = shouldBypassSessionListSingleFlight(options);