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): wire note memory into lazy resume fixture

Chris5249a1c0e947
diff --git a/apps/desktop/src/main/maker-ipc/__tests__/sendToSessionLazyResumePermission.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/sendToSessionLazyResumePermission.test.ts
index 61637a92b8..82134dcf7b 100644
--- a/apps/desktop/src/main/maker-ipc/__tests__/sendToSessionLazyResumePermission.test.ts
+++ b/apps/desktop/src/main/maker-ipc/__tests__/sendToSessionLazyResumePermission.test.ts
@@ -23,6 +23,7 @@ import { permissionModeOrAsk } from '@cindy/maker-shared/permission-mode';
import { AUTO_REVIEW_SOURCE_CONTENT, AUTO_REVIEW_USER_INTENT, AUTO_REVIEW_DELEGATED_CONTINUATION, TurnDispatchRejectedError, type SendOptions } from '@cindy/maker-core';
import { restoreAutoReviewUserIntent } from '../autoReviewUserIntent.js';
import { verifiedOwnerRequestText } from '../../../shared/forwardedRequest.js';
+import { createWireNoteMemory } from '../wireNoteMemory.js';
const registerSource = readFileSync(resolve(__dirname, '..', 'register.ts'), 'utf8').replace(
/\r\n?/g,
@@ -180,6 +181,7 @@ function botTaskDispatchHarness(
isCindyMakeWorktreePath: () => false,
app: { getPath: () => '/fixture' },
agentHandoffPending: { peek: asyncNoop },
+ wireNoteMemory: createWireNoteMemory(),
shouldPrependMobileClientPromptNote: () => false,
noteChannelTurnSource: () => noop,
channelTurnSourceFor: noop,