Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(companions): supply model locations in roster fixture
Chrisaea83f0670a2
diff --git a/apps/desktop/src/renderer/features/bots/__tests__/botRosterView.test.tsx b/apps/desktop/src/renderer/features/bots/__tests__/botRosterView.test.tsxindex d0aa611fdb..7d69b00a56 100644--- a/apps/desktop/src/renderer/features/bots/__tests__/botRosterView.test.tsx+++ b/apps/desktop/src/renderer/features/bots/__tests__/botRosterView.test.tsx@@ -6,6 +6,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';const translate = (key: string, opts?: Record<string, unknown>) =>opts ? `${key}:${JSON.stringify(opts)}` : key;vi.mock('@/contexts/AuthContext', () => ({ useAuth: () => ({ dataOwnerId: 'fixture-owner' }) }));+// Creation tests supply a local-only location catalog; device presence is covered by the route hook tests.+vi.mock('@/hooks/useModelRouteDevices', () => ({+ useModelRouteDevices: () => ({ devices: [], leadAgentDeviceId: null }),+}));vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: translate }) }));const mocks = vi.hoisted(() => ({