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。

test: provide directory probe for main transaction compatibility

ylliuuu669080138af8a0
diff --git a/apps/desktop/src/main/maker-ipc/__tests__/agent-input-coordinator.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/agent-input-coordinator.test.ts
index a2b912edb5..380fd62ddd 100644
--- a/apps/desktop/src/main/maker-ipc/__tests__/agent-input-coordinator.test.ts
+++ b/apps/desktop/src/main/maker-ipc/__tests__/agent-input-coordinator.test.ts
@@ -14531,6 +14531,8 @@ describe('usage-limit wait (ordinary tasks)', () => {
session, didInjectOrcaInstructions: false, didInjectProjectContext: false,
})).mockRejectedValueOnce(quota);
const transaction = createMakerSendTransaction({
+ // Main's transaction requires a directory probe; spread also supports this branch's older contract.
+ ...{ statDirectory: async () => ({ isDirectory: () => true }) },
getSession: () => rehydrate ? session : undefined,
closeSession: async () => {}, preflightBotRuntimeResources: async () => {},
getSessionMeta: async () => ({}), ensureRemoteReadyForSessionStart: async () => {},