mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Remove the persistent Cooldown state and cooldown_until/availability_reason columns; rate limiting (429/503) now lives entirely in provider quota data with projected window rolling, while availability carries only terminal or intervention-required states (QuotaExhausted for 402, worker auto-recovers on quota reset). xAI migrated to the same model (runtime cooldown via Redis, no persistent state). Frontend derives 限流中 from quota window limitReached. Align quota window parsing with the official codex schema: drop the invented monthly_limit/spend_control windows, add the top-level code_review_rate_limit window, prefer upstream limit_name for display labels, and keep duration guessing only for grouping. Also fix: account directory degrades one failing quota to an empty projection instead of failing the whole page; dashboard rate_limited bucket SQL; fake store Mutex re-entrancy deadlock; remove dead tokenRefreshing field. Migration 0002 drops cooldown columns and rewrites the availability CHECK. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>