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(update): 源码守卫允许 executeRelaunch 透传可选 options

Dashb3d4ce15e922
diff --git a/apps/desktop/src/main/__tests__/piSubagentUpdateRelaunchGate.test.ts b/apps/desktop/src/main/__tests__/piSubagentUpdateRelaunchGate.test.ts
index b2a0fa12a5..8e587dfe98 100644
--- a/apps/desktop/src/main/__tests__/piSubagentUpdateRelaunchGate.test.ts
+++ b/apps/desktop/src/main/__tests__/piSubagentUpdateRelaunchGate.test.ts
@@ -142,7 +142,7 @@ describe('PI Subagent reclaim before an update relaunch', () => {
source.indexOf('async function executeRelaunch('),
source.indexOf('async function executeRelaunchUnguarded('),
);
- expect(wrapper).toMatch(/try \{\s*await executeRelaunchUnguarded\(theme\);\s*\} catch/);
+ expect(wrapper).toMatch(/try \{\s*await executeRelaunchUnguarded\(theme, options\);\s*\} catch/);
expect(wrapper).toContain("handleApplyFailure('relaunch_failed')");
// The gate and everything after it live in the guarded body.
const guarded = source.slice(source.indexOf('async function executeRelaunchUnguarded('));