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(main): sendToSession 顺序契约适配 selection 的 thinking 载体字段

zyjisdogd267c8c2849a
diff --git a/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts b/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
index 227114d323..093be38f6a 100644
--- a/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
+++ b/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
@@ -627,7 +627,8 @@ describe('sendToSession ordering', () => {
'restoreControlStores();',
'throw persistenceError;',
);
- expect(preloadSource).toContain('selection?: { effort: string | null; fastMode: boolean },');
+ // #5044 在 selection 上加了可选 thinking 载体;upstream 用例的旧字符串同步。
+ expect(preloadSource).toContain('selection?: { effort: string | null; fastMode: boolean; thinking?: boolean },');
expectOrder(
preloadSource,
'expectedAgentSwitchRevision,',