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(remote): guard account boundary before reading refresh owner

DavidShen3ee92d65649f
diff --git a/apps/desktop/src/main/maker-ipc/register.ts b/apps/desktop/src/main/maker-ipc/register.ts
index 512236a873..05222c749e 100644
--- a/apps/desktop/src/main/maker-ipc/register.ts
+++ b/apps/desktop/src/main/maker-ipc/register.ts
@@ -7521,10 +7521,10 @@ export function registerMakerIpc(maker: Maker, options: RegisterMakerIpcOptions)
// holder 供各 turn 收口路径调用。远端 CC 走 holder 的 detach 补偿
// (bridge 重建 / 端口重绑已让 fresh 失效时重建 query)。
refreshRemoteCodexMcpOnTurnSettledHolder = (sessionId: string): void => {
- const ownerGeneration = getActiveAppSession().generation;
// Shutdown closes sessions while the dynamic Maker facade rejects access.
// No remote reconfiguration belongs to the departing owner's boundary.
if (isAppSessionBoundaryPending()) return;
+ const ownerGeneration = getActiveAppSession().generation;
const session = maker.getSession(sessionId);
const remoteHostId = session?.remoteHostId;
if (!remoteHostId) return;