Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): 同步 orcaWorkflowRoute 设置守卫源码不变量
Shinku1965895b0b7b
diff --git a/apps/desktop/src/renderer/__tests__/orcaWorkflowRoute.test.ts b/apps/desktop/src/renderer/__tests__/orcaWorkflowRoute.test.tsindex fc69ef9a94..c360ae03f2 100644--- a/apps/desktop/src/renderer/__tests__/orcaWorkflowRoute.test.ts+++ b/apps/desktop/src/renderer/__tests__/orcaWorkflowRoute.test.ts@@ -410,11 +410,12 @@ describe('OrcaWorkflowRoute source invariants', () => {});it('does not navigate the detached sidebar window to settings from the worker toolbar', () => {- // 硬上限时 + 按钮跳转到协同设置(codex P1 逃生口),但分离侧栏窗口不能整壳替换成设置路由。- // 实现用 onOpenSettings={isSidebarWindow() ? undefined : handleOpenSettings} 在调用处守卫:- // 侧栏窗口下传 undefined,+ 按钮回退为 disabled(不再呈现点了没反应的「设置 · 协同」按钮)。+ // 硬上限时 + 按钮跳转到协同设置(codex P1 逃生口),但分离侧栏窗口与 device-link 受控面板+ // 不能整壳替换成设置路由(前者固定 /sidebar-window 壳路由,后者上限走 device-link 远程路径)。+ // 实现用 onOpenSettings={isSidebarWindow() || deviceId ? undefined : handleOpenSettings} 在调用处守卫:+ // 两类面板下传 undefined,+ 按钮回退为 disabled(不再呈现点了没反应的「设置 · 协同」按钮)。expect(workerPanelSource).toContain("import { isSidebarWindow } from '@/lib/sidebarWindow';");- expect(workerPanelSource).toContain('onOpenSettings={isSidebarWindow() ? undefined : handleOpenSettings}');+ expect(workerPanelSource).toContain('onOpenSettings={isSidebarWindow() || deviceId ? undefined : handleOpenSettings}');expect(workerPanelSource).toContain("navigate('/settings?section=collaboration')");expect(workerPanelSource).not.toContain('settingsEnabled');expect(workersTabBodySource).toContain("import { isSidebarWindow } from '@/lib/sidebarWindow';");