mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
* feat(server): make provider refresh timeout configurable Provider refresh probes (isAvailable + listModels/listModes) were hardcoded to a 30s timeout. With many providers and MCP servers configured, cold starts of agents like Copilot can exceed this on the first probe, surfacing 'Timed out refreshing Copilot after 30000ms' even though a manual retry succeeds (warm caches). Add a PASEO_PROVIDER_REFRESH_TIMEOUT_MS env var so operators can bump the ceiling without rebuilding. The explicit constructor option still wins over the env var, and invalid values fall back to the 30s default. * refactor(server): address review feedback on refresh timeout config - Use Number() instead of Number.parseInt() so scientific notation like '6e4' parses as 60000 instead of being silently truncated to 6. - Use vi.stubEnv()/vi.unstubAllEnvs() in tests to match the rest of the suite and avoid manual process.env save/restore.