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(teammates): preserve cancellation source literal types

zqchrisff12f2db669d
diff --git a/apps/desktop/src/main/scheduler-host/__tests__/runnerBackgroundTasks.test.ts b/apps/desktop/src/main/scheduler-host/__tests__/runnerBackgroundTasks.test.ts
index c08f20ab4c..9b5f3e1000 100644
--- a/apps/desktop/src/main/scheduler-host/__tests__/runnerBackgroundTasks.test.ts
+++ b/apps/desktop/src/main/scheduler-host/__tests__/runnerBackgroundTasks.test.ts
@@ -584,8 +584,8 @@ describe('MakerScheduleRunner background subagent task tracking', () => {
});
it.each([
- ...['cancelled', 'failed', 'interrupted', 'aborted'].map(status => ({ source: 'pi', data: { status }, status })),
- { source: 'codex', data: { cancelled: true }, status: 'cancelled' },
+ ...['cancelled', 'failed', 'interrupted', 'aborted'].map(status => ({ source: 'pi' as const, data: { status }, status })),
+ { source: 'codex' as const, data: { cancelled: true }, status: 'cancelled' },
])('does not record $source $status as success when the scheduler signal is still live', async ({ source, data, status }) => {
const h = createSessionHarness(acceptingSend());
const { runner, notifier } = createRunnerHarness(h.session);