Remove in-flight coalescing and fix active-provider gap

Address review feedback:

1. Remove in-flight coalescing logic (out of scope for this PR)
   - Remove inFlightModelFetches map and related logic from modelCache.ts
   - Remove inFlightEndpointFetches map and related logic from modelEndpointCache.ts
   - Remove background refresh on file cache hit
   - Simplify to: memory cache → file cache → network fetch

2. Fix active-provider scoping gap for local providers
   - Include ollama/lmstudio/huggingface in allFetches when they are the active provider
   - Prevents empty routerModels response that breaks chat flows for these providers

The PR now focuses solely on its primary goal: scope model fetching to
the active provider to reduce unnecessary network requests.
This commit is contained in:
daniel-lxs 2025-10-30 10:54:31 -05:00
parent 9d0f01bf92
commit 3f4edff096
No known key found for this signature in database
GPG key ID: 21C74479048B3AA6

Diff content is not available