Repository navigation
Codex throttling no longer shows a false usage limit - #48218
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Review status Problem: when Codex gave up after repeated "429 Too Many Requests" retries, or hit a "slow down" throttle, the chat said "Codex usage limit reached / Reset time unknown" even though the account still had usage left. User-facing change: those turns now show "Codex couldn't respond because the service is busy. Pick another model, or wait a little and send again.", with Codex's error text under Details. Real usage limits still show the usage-limit card with its reset time. Fixed during review
Deferred (not blocking)
Verified
Screenshots are in the PR description. |
* Fix false Codex usage limit warnings during throttling * Cover Codex throttle messages in the journal
ELI5
When Codex was briefly too busy to answer, Orca told you that you'd hit your usage limit and showed "Reset time unknown", even though you still had usage left. Now that case says Codex's service is busy, so you know to wait a little and send again.
What Changed
Why
Codex reports a real quota with its own error kind, and that error carries the reset time. A plain 429 is a temporary throttle that Codex retries and then gives up on. Calling it a usage limit gave a false "limit reached" with no reset time, and offered waits and Continue controls that could never apply. Showing the real error is more honest than hiding the missing time.
Linked Issue
N/A (internal report)
Visual Proof
Dev builds, real Codex CLI, local mock upstream. Before, a 429 throttle:


After, the same throttle:
After, a "slow down" throttle and then a real usage limit (the card still shows its reset time):
Testing
Performance
None, because this only changes how one error is classified when a turn fails.
Risk
Level: Low. If Codex ever reported a real quota without its quota error kind, the chat would show "service is busy" instead of the limit card. Codex always sends its quota error for real limits. Saved history keeps its old rows. Back out with a plain revert.
Review
Agent skill upstream boundary
Notes
Security, mobile and SSH: no change beyond the new classification, which the host makes and phones display as-is. Remote hosts pick it up when they update. Cross-platform: no platform-specific code.
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)