Strip service_tier from Claude subscription requests

Merged
AN
10h ago
+172-7

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.