From 3f4edff0960b2c9a6aaa3f753fa4c91e99eb041b Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Thu, 30 Oct 2025 10:54:31 -0500 Subject: [PATCH] Remove in-flight coalescing and fix active-provider gap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.