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): align source contracts with current behavior

Lizi85032926f116
diff --git a/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts b/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
index 79909f0a4c..d60722642a 100644
--- a/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
+++ b/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
@@ -207,7 +207,9 @@ describe('sendToSession ordering', () => {
expect(queuedCreateOptsBlock).toContain('inheritTargetPlanMode = false,');
expect(queuedCreateOptsBlock).toContain('planMode: inheritTargetPlanMode ? !!row.planModeEnabled : false,');
expect(orcaInterAgentDispatcherSource).toContain('planMode: false,');
- expect(schedulerRunnerSource).toContain('planMode: routinePermissions?.planMode ?? false,');
+ expect(schedulerRunnerSource).toContain(
+ 'planMode: routinePermissions?.planMode ?? heartbeatPermissions?.planMode ?? false,',
+ );
expect(goalControllerSource).toContain("origin: { kind: 'goal', goalSessionId: sessionId },");
expect(goalControllerSource).toContain('planMode: false,');
expect(imTurnRunnerSource).toContain('planMode: false,');