Skip to content

Strip service_tier from Claude subscription requests - #686

Merged
ualtinok merged 2 commits into
mainfrom
fix/oauth-no-service-tier
Nov 9, 2026
Merged

ualtinok merged 2 commits into
mainfrom
fix/oauth-no-service-tier

Conversation

@antauth-alfonso

@antauth-alfonso antauth-alfonso Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Strip service_tier from Claude subscription requests. Worker delivery rebased onto main; see the commit messages.


Summary by cubic

Strips service_tier from Claude subscription (OAuth) requests so they match the request shape Claude Code itself sends, while API-key requests keep the field. Host-added service_tier values like standard_only on OAuth requests no longer reach the API; the option was already ignored by Claude Code.

  • Applies the strip in OpenCode 1 and 2 and Pi when requests carry an OAuth identity; API-key requests keep service_tier unchanged.
  • service_tier added by Pi's onPayload hook is also stripped before signing on OAuth requests.

Written for commit 387dccb. Summary will update on new commits.

View guided diff Turn on auto-fix

@antauth-alfonso antauth-alfonso Bot closed this Nov 9, 2026
@antauth-alfonso antauth-alfonso Bot reopened this Nov 9, 2026
@ualtinok
ualtinok force-pushed the fix/oauth-no-service-tier branch from 70ebf33 to 387dccb Compare November 9, 2026 18:36
@ualtinok
ualtinok merged commit 387dccb into main Nov 9, 2026
17 checks passed
@ualtinok
ualtinok deleted the fix/oauth-no-service-tier branch November 9, 2026 18:41
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.

1 participant