Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
Merge main into provider quota balancing and narrow IPC test command
MagicLizi9f11206a687e
diff --cc apps/desktop/src/main/provider-group/__tests__/ipc.test.tsindex c263fbd7f2,ce0812b7c2..3cd82ce68f--- a/apps/desktop/src/main/provider-group/__tests__/ipc.test.ts+++ b/apps/desktop/src/main/provider-group/__tests__/ipc.test.ts@@@ -88,16 -86,6 +88,18 @@@ function deps(candidates: ProviderGroup}describe('parseProviderGroupCommand', () => {+ // Unit: the real command boundary must preserve the confirmed message ID instead of a session-wide decision.+ it('passes a confirmed message id through parsing and execution', async () => {+ const d = deps([]);+ d.rebalanceDecision = vi.fn(async () => true);+ const request = { action: 'rebalance-decision', sessionId: 's1', memberKey: MINI.key, remember: false, clientId: 'message-a' };- expect(await executeProviderGroupCommand(d, parseProviderGroupCommand(request))).toEqual({ ok: true });++ const command = parseProviderGroupCommand(request);++ if (command.action !== 'rebalance-decision') throw new Error('Expected the rebalance decision command');++ expect(await executeProviderGroupCommand(d, command)).toEqual({ ok: true });+ expect(d.rebalanceDecision).toHaveBeenCalledWith('s1', MINI.key, false, 'message-a');+ expect(() => parseProviderGroupCommand({ ...request, clientId: 'bad id' })).toThrow();+ });+it('rejects malformed commands', () => {expect(() => parseProviderGroupCommand(null)).toThrow();expect(() => parseProviderGroupCommand({ action: 'get', providerId: 'bad id' })).toThrow();