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 worker fast contract after rebase

Chrisa402ecf9eaab
diff --git a/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts b/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
index c18cfc2380..0fc47f9e74 100644
--- a/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
+++ b/apps/desktop/src/main/__tests__/makerSendToSessionOrdering.test.ts
@@ -575,7 +575,12 @@ describe('sendToSession ordering', () => {
expect(ipcCreateBlock).toContain("if (!label.ok) throwIpcError('INVALID_PARAMS', label.message);");
expect(ipcCreateBlock).toContain('label: label.value,');
expect(orcaWorkerCreationServiceSource).toContain('budgetModelRequiresApiKey(params.agent, resolved.model, deps.readClaudeApiKey() != null)');
- expect(orcaWorkerCreationServiceSource).toContain("(input.agent === 'codex' && input.fast !== undefined)");
+ expect(orcaWorkerCreationServiceSource).toContain(
+ 'agentConsumesExplicitFast(input.agent) && input.fast !== undefined',
+ );
+ expect(orcaWorkerCreationServiceSource).toContain(
+ "return agent === 'codex' || agent === 'pi';",
+ );
expect(orcaLifecycleServiceSource).toContain('createWorkerInTeam({ ...params, teamId: team.id })');
});