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。

fix(desktop): 保留注册 worktree 的规范路径引用

DavidShen2f08bd54bd7d
diff --git a/apps/desktop/src/main/worktree/liveSessionRefs.ts b/apps/desktop/src/main/worktree/liveSessionRefs.ts
index 4e3cf7546f..cdbf2c8a60 100644
--- a/apps/desktop/src/main/worktree/liveSessionRefs.ts
+++ b/apps/desktop/src/main/worktree/liveSessionRefs.ts
@@ -82,6 +82,8 @@ export async function loadLiveSessionPathKeys(
for (const meta of store.getAll()) {
if (subagentReferences.has(meta.sessionId)
|| (meta.sessionId !== opts.excludeSessionId && !knownSessionIds.has(meta.sessionId))) {
+ const metaPathKey = pathKey(meta.path);
+ if (metaPathKey) keys.add(metaPathKey);
keys.add(await physicalWorktreeKey(meta.path));
}
}