Skip to main content

warm_used_providers

Function warm_used_providers 

Source
pub fn warm_used_providers(
    paths: DataPaths,
    provider_ids: Vec<String>,
) -> JoinHandle<()>
Expand description

SPEC_AGENT_OPEN_LATENCY_2026_09_27.md §4.1: install the pinned CLI of every provider the user’s agents use, in the background, so the first open after a pin bump doesn’t wait on npm. Only providers in provider_ids (the user’s own agent definitions — not every template’s), only pins with no install yet, one at a time, npm below normal priority. An open that arrives mid-install waits on the same lock and then reuses the result. Failures (no npm, offline) are logged and left for the open to report.