mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Unify account status derivation in gateway-admin via AccountStatusSignals, removing the duplicated rules in store and use_case. AccountStatus now has five operational classes (normal/quota_exhausted/rate_limited/disabled/error), with AccountErrorReason carrying the concrete cause. Add provider_accounts.last_error_message, written by record_failure with the raw upstream error and cleared on recovery to ready. The admin error badge shows the cause and upstream text on hover. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>