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(desktop): dedupe statDirectory fixture after base merge

Leng Jingxu602eaca017d9
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 84970cdaf6..54eeeb4ada 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
@@ -14532,13 +14532,12 @@ describe('usage-limit wait (ordinary tasks)', () => {
session, didInjectOrcaInstructions: false, didInjectProjectContext: false,
})).mockRejectedValueOnce(quota);
const transaction = createMakerSendTransaction({
- statDirectory: async () => ({ isDirectory: () => true }),
getSession: () => rehydrate ? session : undefined,
closeSession: async () => {}, preflightBotRuntimeResources: async () => {},
getSessionMeta: async () => ({}), ensureRemoteReadyForSessionStart: async () => {},
- statDirectory: async () => ({ isDirectory: () => true }),
checkWorkDirExists: async () => true, isOrcaMcpHydrated: () => !rehydrate,
buildCreateOptsWithStderr: x => x, synthesizeOrcaVendorOptionsFromDb: async () => rehydrate,
+ statDirectory: async () => ({ isDirectory: () => true }),
readSessionExtraDirsFromDb: async () => [], readSessionWorkingDirFromDb: async () => '/repo',
readWorkingDirectoryRecoveryCreateOpts: async () => ({ agentKind: 'claude-code', workingDir: '/repo', model: 'claude-opus-4-7' }),
withRehydrateCloseSuppressed: async (_id, fn) => fn(), bootstrapSession: bootstrap,