perf: streamline provider and agent startup loading #185

Avoids loading the full provider catalog on startup
Prewarms project config in the background
Prevents duplicate worktree-scoped config requests
This commit is contained in:
Bohdan Triapitsyn
2026-06-16 19:23:38 +03:00
parent fe99c455ae
commit a2a1cedf8d
10 changed files with 307 additions and 52 deletions
@@ -0,0 +1,9 @@
import { describe, expect, test } from 'bun:test';
import { shouldLoadAvailableProviders } from './providerAvailability';
describe('ProvidersPage available provider loading', () => {
test('loads available providers only in add-provider mode', () => {
expect(shouldLoadAvailableProviders(false)).toBe(false);
expect(shouldLoadAvailableProviders(true)).toBe(true);
});
});