Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(settings): isolate permission section in Escape routing tests
zqchriseb9d565049bc
diff --git a/apps/desktop/src/renderer/components/settings/__tests__/SettingsViewEscape.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/SettingsViewEscape.test.tsxindex c160d03cc3..7b5e77f7ca 100644--- a/apps/desktop/src/renderer/components/settings/__tests__/SettingsViewEscape.test.tsx+++ b/apps/desktop/src/renderer/components/settings/__tests__/SettingsViewEscape.test.tsx@@ -53,6 +53,9 @@ vi.mock('../GitSafetySection', () => ({ GitSafetySection: Stub }));vi.mock('../SessionImportSection', () => ({ SessionImportSection: Stub }));vi.mock('../AgentResourceSection', () => ({ AgentResourceSection: Stub }));vi.mock('../CollaborationSection', () => ({ CollaborationSection: Stub }));+// Permission confirmation is covered in NewChatDefaultPermissionSection.test.tsx;+// this page-level test isolates section contents and exercises only Escape routing.+vi.mock('../NewChatDefaultPermissionSection', () => ({ NewChatDefaultPermissionSection: Stub }));vi.mock('../BuiltinToolsSection', () => ({ BuiltinToolsSection: Stub }));vi.mock('../contacts/ContactsSection', () => ({ ContactsSection: Stub }));vi.mock('../ComputerUseSection', () => ({ ComputerUseSection: Stub }));