Skip to content

fix(proxy): suppress Claude subscription on ctx in baseline failover exhaustion check#728

Open
devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1752601400-baseline-suppress
Open

fix(proxy): suppress Claude subscription on ctx in baseline failover exhaustion check#728
devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1752601400-baseline-suppress

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

In the baseline-failover path of ProxyMessages, when claudeSubscriptionExhausted fires the suppression marker was applied only to baselineCtx, not the outer ctx. The later re-resolution against ProviderAnthropic then saw the inbound OAuth bearer, so servedOnSubscription returned true and the turn was billed against the spent subscription even though the deployment key served it. Now ctx is also stamped with withSuppressedClaudeSubscription.

Adapted from #533 by @rohith500 (thank you!) — same fix; test comments trimmed of line-number/"fails without fix" narratives per internal conventions.

Link to Devin session: https://app.devin.ai/sessions/840868be330a4e258f7325867c84caaf
Requested by: @steventohme

…exhaustion check

Adapted from #533 by @rohith500.

Co-Authored-By: Steven Tohme <steven@workweave.ai>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@greptile-apps

greptile-apps Bot commented Jul 15, 2026

Copy link
Copy Markdown

PR author is not in the allowed authors list.

Co-authored-by: Rohith Reddy Nama <104615697+rohith500@users.noreply.github.com>
Co-Authored-By: Steven Tohme <steven@workweave.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants