Skip to content

fix(proxy): isolate custom Messages beta headers - #134

Merged
AprilNEA merged 1 commit into
masterfrom
fix/custom-messages-betas
Oct 9, 2026
Merged

AprilNEA merged 1 commit into
masterfrom
fix/custom-messages-betas

Conversation

@AprilNEA

@AprilNEA AprilNEA commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Fix

Custom Messages upstreams must not inherit BYOKEY's Claude Code beta defaults. Merge only explicitly requested client headers, JSON betas, and the long-context suffix for custom providers. Omit an unrequested beta header and preserve configured header overrides. Keep built-in Claude and Copilot defaults unchanged.

Verification

  • Reproduced the reported HTTP 400 through the installed gateway without any client beta header or effort setting.
  • Regression assertions failed before the fix and passed afterward.
  • Real custom-upstream requests with effort: max passed in both JSON and SSE modes.
  • Formatting and workspace Clippy passed.
  • Local workspace tests: 378 passed with one verified baseline failure excluded. The macOS watcher test watcher::tests::a_file_created_or_renamed_over_is_reloaded fails and hangs on unchanged origin/master as well. Linux CI must run the full test suite.

Amp-Thread-ID: T-01a11763-0145-758c-95f8-7935df7a8a26
@pullfrog

pullfrog Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

No configured credential can serve this run. Every credential configured for anthropic/claude-opus-5-5 was rejected or is out of quota, so the agent never ran.

  • CLAUDE_CODE_OAUTH_TOKEN from account scope: 403: OAuth authentication is currently not allowed for this organization. — re-authenticate with pullfrog auth claude, or switch this repo to a model you hold an API key for. Re-authenticate →

Model settings → · Ask in Discord →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using claude-opus-5-5 | 𝕏

@AprilNEA
AprilNEA merged commit 4a717d1 into master Oct 9, 2026
5 of 6 checks passed
@aprilnea aprilnea Bot mentioned this pull request Oct 9, 2026
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