mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Selection-stage failures all collapsed into a generic "upstream service is unavailable", so a 30s runtime cooldown was indistinguishable from a real upstream outage. The connection test pins a single account and has no fallback, making every retry inside the window look like a dead upstream. Split the runtime-cooldown case out of NoEligibleSession into a new AccountCoolingDown variant carrying the remaining wait, and attach a structured code and error type to each selection failure. The admin connection test now renders the reason and the remaining cooldown. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>