mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Count only confirmed capacity rejections toward account cooldown, excluding generic server failures and unrecognized upstream errors. Classify streamed invalid_prompt failures as invalid requests, matching official Codex. Cover HTTP and WebSocket failures around the cooldown threshold while preserving retry boundaries, upstream error payloads, and Smart scoring. Update the capacity cooldown contract in the API and architecture docs. Validation: Rustfmt, strict workspace Clippy, and all backend suites with isolated PostgreSQL 18 / Redis 8 (--test-threads=4). Reference: openai/codex@7498521d28, codex-rs/codex-api/src/sse/responses.rs. Refs #177 Co-authored-by: Codex <noreply@openai.com>