mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
* Refresh enabled provider catalogues in the background every 30 minutes A long-running daemon cached discovered models until a manual Refresh or a restart, so a server-side model rollout stayed invisible. The daemon now refreshes each enabled provider about every 30 minutes, one provider per staggered slot. A recent refresh pushes the next one back. Background refreshes join discovery already in flight, publish only changed catalogues, and keep a ready catalogue when a probe fails. Co-Authored-By: Claude <noreply@anthropic.com> * Keep background refresh slots independent and its probes soft Ticks no longer wait for a refresh to settle, so one slow provider cannot delay the others. A provider with a background refresh still running is skipped. The due check uses a fixed one-second timer slack instead of half a slot, so a manual refresh always pushes the next probe a full interval. Background probes pass force: false so OpenCode keeps its shared server. A result that is not ready keeps a ready catalogue, which covers plugin status probes that report a failed startup as unavailable. Co-Authored-By: Claude <noreply@anthropic.com> * Keep a ready catalogue when a background refresh returns a partial one Claude falls back to its curated list without discovery-gated models when model discovery fails or times out. That result is ready, so a background refresh published it and Mythos left the picker. Providers now mark such a catalogue incomplete, and a background refresh keeps the ready catalogue it would have replaced. A manual refresh still publishes it. Co-Authored-By: Claude <noreply@anthropic.com> * Kill OpenCode servers whose startup is pending at shutdown A probe still allocating its port when the daemon stopped spawned its OpenCode server after shutdown returned, and the process outlived the daemon. Background refresh makes that overlap likelier. Shutdown now waits for pending startups and kills the generations they produce. Co-Authored-By: Claude <noreply@anthropic.com> * Stop running probes before provider shutdown A probe checking availability when the daemon stopped could still go on to discovery and start an OpenCode server after provider cleanup returned. The manager now aborts every running probe through its refresh signal when it stops, and shutdown waits up to ten seconds for them to settle before it shuts down provider clients. Co-Authored-By: Claude <noreply@anthropic.com> * Refuse OpenCode spawns from operations begun before shutdown A rotation accepted before shutdown waited for the old server to stop and then started a replacement after cleanup returned. The server manager now counts shutdowns; every operation that can start a server records the epoch it began in, and the spawn step refuses once a shutdown has passed. Operations begun after shutdown still start, since the manager is a process-wide singleton. Co-Authored-By: Claude <noreply@anthropic.com> * Keep manual refresh precedence over concurrent background refreshes * Avoid eager provider snapshot downloads for unobserved directories --------- Co-authored-by: Claude <noreply@anthropic.com>