Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test: update relocation wiring lock for orca lead local fallback
PraiseZhu8b7e52204c1c
diff --git a/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.ts b/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.tsindex 29150ada79..fe7dc411a8 100644--- a/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.ts+++ b/apps/desktop/src/renderer/__tests__/remoteAgentRelocationWiring.test.ts@@ -7,7 +7,7 @@* 2. 换位置带着目标电脑进切换事务,意图期内的后续改选沿用意图里的电脑;* 3. 意图期内模型目录跟随意图里的电脑,选回任务当前所在电脑不带位置;* 4. 只对本机任务、或支持远程 Agent 的被控电脑上的任务开放,且要能走切换事务(SSH / 旧被控端 /- * 共享任务访客 / 协同任务不开放)。+ * 共享任务访客不开放;协同任务默认不开放,仅 Lead 在 Agent 所在电脑目录读取失败时开放回任务本机)。** 2026-10-09 起被控电脑上的任务也开放(用户反馈:A 远控 B 的任务选不到 C 的远程供应商,手机能)。*/@@ -90,8 +90,13 @@ describe('ChatInput:换位置进切换事务', () => {});it('只对本机任务、或支持远程 Agent 的被控端任务开放,且要能走切换事务', () => {+ // 协同任务默认不开放换位置;唯一例外是 Lead 的 Agent 所在电脑目录读取失败时只开放回任务本机+ // (orcaLeadLocalFallback,门控见 sessionAgentSwitchGate.ts),行为用例在 orcaLeadLocalFallbackRelocate。expect(chatInputSource).toContain(- 'if (!sessionId || !agentLocationAware || remoteHostId || !sessionEngineFilter ||\n sessionOrcaRole !== null || sessionOrcaRemoteWorker) return undefined;',+ 'if (!sessionId || !agentLocationAware || remoteHostId || !sessionEngineFilter ||\n (isOrcaSession && !orcaLeadLocalFallback)) return undefined;',+ );+ expect(chatInputSource).toContain(+ 'const isOrcaSession = sessionOrcaRole !== null || sessionOrcaRemoteWorker;',);expect(chatInputSource).toContain('agentDeviceId: selection.agentDevice?.deviceId ?? null,');});