mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
The legacy list_provider_models_request handler was calling providerRegistry[p].fetchModels() directly, so every client call spawned the provider fresh (e.g. repeated copilot ENOENT errors). Old clients still send this RPC. Route it through ProviderSnapshotManager so simultaneous calls dedupe through the in-flight warmUps map, cached entries (ready / error / unavailable) are served without spawning, and at most one spawn occurs per cwd per TTL window regardless of client count. Direct-fetch path kept only as a fallback for the null-manager case (tests).