feat(acp+): models/providers in desktop on ACP+ (#9987)

This commit is contained in:
Alex Hancock
2026-06-26 13:04:24 -04:00
committed by GitHub
parent d1d2166190
commit 2fda760641
49 changed files with 2734 additions and 1687 deletions
+9
View File
@@ -63,6 +63,15 @@ vi.mock('./sessions', () => ({
createSession: vi.fn(),
}));
// Mock the ACP providers module used by OnboardingGuard so it doesn't try to
// open a real ACP client connection during tests. Returning null defaults
// keeps the app in the "brand new" (no provider configured) onboarding state.
vi.mock('./acp/providers', () => ({
acpReadDefaults: vi.fn().mockResolvedValue({ providerId: null, modelId: null }),
acpSaveDefaults: vi.fn().mockResolvedValue(undefined),
acpListProviderDetails: vi.fn().mockResolvedValue([]),
}));
// Mock the ConfigContext module
vi.mock('./components/ConfigContext', () => ({
useConfig: () => ({