Improve Claude OAuth 429 rate limit handling#1179
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed May 27, 2026, 3:02 AM ET / 07:02 UTC. Summary Reproducibility: yes. Source inspection shows a high-confidence current-main path where a 429 from the Claude OAuth usage endpoint falls through to generic serverError handling and then invalidates the OAuth cache; I did not run a live Anthropic 429 reproduction. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance: Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Merge a narrow Claude OAuth 429 fix after maintainers accept the cache/cooldown policy, the latest-head checks are green, and the PR includes redacted runtime proof of the changed behavior. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows a high-confidence current-main path where a 429 from the Claude OAuth usage endpoint falls through to generic serverError handling and then invalidates the OAuth cache; I did not run a live Anthropic 429 reproduction. Is this the best way to solve the issue? Yes, the proposed direction is narrow: classify 429 separately, show actionable guidance, preserve credentials, and back off background retries. The persisted cooldown scope still needs maintainer acceptance, real behavior proof, and green latest-head validation. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 79f61e63ac2d. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
1dd800e to
7df2fd3
Compare
7df2fd3 to
539f3c4
Compare
Co-authored-by: Zhongyue Lin <[email protected]>
Summary
Retry-Afterand lets user-initiated refreshes bypass stale cooldownsRelated: #575
Testing
swift build --target CodexBarCoreswift build --product CodexBarCLIswift build --target CodexBarWidgetgit diff --checkswift test --filter ClaudeOAuthTests(blocked before project tests run: local toolchain fails compilingKeyboardShortcuts#Previewmacros with missingPreviewsMacros.SwiftUIViewplugin)