fix: surface Anthropic OAuth rate limits#1958
Merged
guillaumegay13 merged 2 commits intoMay 26, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1958 +/- ##
==========================================
- Coverage 99.31% 99.25% -0.07%
==========================================
Files 170 169 -1
Lines 14903 15337 +434
Branches 5820 5993 +173
==========================================
+ Hits 14801 15222 +421
- Misses 101 113 +12
- Partials 1 2 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Bundle ReportChanges will increase total bundle size by 11.9kB (0.61%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: manifest-frontend-esmAssets Changed:
Files in
|
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
Validation
npm run build --workspace=packages/sharednpm test --workspace=packages/backend -- src/routing/oauth/anthropic/anthropic-oauth.service.spec.ts src/routing/oauth/anthropic/anthropic-oauth.controller.spec.tsnpm test --workspace=packages/frontend -- AnthropicOAuthDetailView.test.tsxgit diff --checkNotes
Split out of #1950 so the MPS refactor stays focused on model parameter schema and scoped saved values.
Summary by cubic
Preserves Anthropic OAuth token-exchange rate limits as HTTP 429 and surfaces the provider’s guidance in the UI. This helps users retry correctly instead of seeing a generic expired-code error.
rate_limit_errorbodies to 429 viaAnthropicOauthExchangeError.AnthropicOAuthDetailView, and falls back to a generic message for non-Error failures.Written for commit a764018. Summary will update on new commits. Review in cubic