bigcat1800 on Discord: with Claude Desktop's tool search on (the commit
before), Claude Code in its Code tab asks tool search by
tool-search-tool-2025-10-19. Copilot's Messages API turns that name away:
400 "Copilot: unsupported beta header(s): tool-search-tool-2025-10-19",
which reached Claude Code, since refuseBetas read only Bedrock's
"Unexpected value(s) `x` for the `anthropic-beta` header". It now reads
Copilot's wording too: the request is asked again at once without the
betas named, and they are left out for that provider from then on, as
Bedrock's are. Any provider wording it the same way gets the same.
Through the live gateway, Copilot's claude-haiku-5.5 answered the same
request (a ToolSearch tool and a defer_loading MCP tool) with no beta and
with advanced-tool-use-2025-11-20, and refused tool-search-tool-2025-10-19.
A Claude subscription took both names.
Run at the pushed head, on mote: TestCopilotUnsupportedBetasLeftOut,
TestUserBetas*, TestBedrockBetas, TestSignInBetaStaysWithMagpie and
TestAutoModeReviewGoesWithItsBeta ok; go test ./internal/gateway
(-timeout 45m) ok but TestCodexPoolSaysTheClientsVersion, the full-run
red filed as #4807 (another test's Codex identity; nothing about betas);
linux and windows vet, gofmt clean.
At the pushed head, rebased on 625938a2f (search.go, handover.go moved):
linux and windows vet of gateway and agent ok, go test -run
'Beta|Bedrock|ClaudeDesktop|Search' of both ok, which covers the Desktop
commit before this one too.
Broken by hand: with the Copilot match turned off,
TestCopilotUnsupportedBetasLeftOut is red (status 400 "Relay: unsupported
beta header(s): tool-search-tool-2025-10-19, effort-2025-11-24").
Not tried: Copilot's raw error body (the fixture words it as magpie's log
shows it, without the "Copilot: " magpie adds; two betas are assumed
comma-separated), and a rebuilt magpie against real Copilot.