Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(remote-agent): 换位置守卫跟上组那一项留在当前电脑的分支
Dash5382a8fa7f65
diff --git a/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.ts b/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.tsindex 389146a8aa..0c105a3b7b 100644--- a/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.ts+++ b/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.ts@@ -47,7 +47,13 @@ describe('ModelSelector:浏览别的电脑的目录时改道换位置', () => {});it('改道的行带上所属电脑', () => {- expect(selectorSource).toContain('relocate!({ ...row, agentDevice: remoteBrowseDevice })');+ const start = selectorSource.indexOf('relocate!(');+ expect(start).toBeGreaterThan(0);+ const call = selectorSource.slice(start, selectorSource.indexOf('.then(', start));+ // 默认:带上正在浏览的那台电脑。+ expect(call).toContain('{ ...row, agentDevice: remoteBrowseDevice }');+ // 任务归组、在组那一项里选同一供应商:留在此刻运行的那台,只换模型(provider-groups.md §10)。+ expect(call).toContain('{ ...row, providerId: currentProviderId, agentDevice: currentAgentDevice }');});});