[codex] Clarify Anthropic extra-usage exhaustion errors - #6498
Closed
HiddenPuppy wants to merge 1 commit into
Closed
[codex] Clarify Anthropic extra-usage exhaustion errors#6498HiddenPuppy wants to merge 1 commit into
HiddenPuppy wants to merge 1 commit into
Conversation
Collaborator
1 similar comment
Collaborator
Collaborator
|
Thanks @HiddenPuppy — closing as implemented on The core of this PR — detecting Anthropic's "out of extra usage" 400 as a billing/entitlement condition (instead of an opaque non-retryable error) and surfacing actionable guidance — has since landed via #56128 (merged 2026-07-01):
One thing #56128 does not cover, and this PR didn't either: the sibling phrasing "Third-party apps now draw from your extra usage / enable extra usage" (a distinct 400 body). That's addressed in #49379, which is staying open. Appreciate the report and the fix — the behavior you were after is now the default. |
This was referenced Jul 30, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
"You're out of extra usage"API error separately from generic non-retryable 400sRoot Cause
Hermes treated Anthropic's extra-usage exhaustion response like any other non-retryable client error. The request failure itself was correct, but the messaging was too generic, which made a usage-limit state look like a broken login or Hermes bug.
Validation
pytest -n 0 tests/run_agent/test_anthropic_error_handling.py9 passed in 90.30spytest -n 0 tests/run_agent/test_long_context_tier_429.py15 passed in 0.14sFixes #6475