neiko on Discord: Claude Code connected to magpie, and "Test as Claude
Code" stayed grey. The test asks with the headers Claude Code last sent
(client-shapes.json), and those were noted only where they were passed
on: a request forwarded on Anthropic Messages to a keyed provider. A
Claude Code on a subscription, a Chat provider's model or any translated
one never got there, so the test kept saying no Claude Code request had
come. They are now noted as the request arrives on /v1/messages, after
the caller guard, whatever serves it; the forward still passes them on
only to a keyed provider on Messages, as before.
Run:
- TestClaudeCodeSeenOnAnyRoute (new): Claude Code on a Chat-only
provider, then a relay's model tested as Claude Code with its headers.
Fails on main ("no Claude Code request has come through magpie yet").
- TestModelTestAsClient still green.
- gofmt; go vet darwin, GOOS=linux -tags nogui, GOOS=windows for
internal/gateway and internal/provider.
- go test -tags nogui ./internal/gateway ./internal/provider (-timeout
60m; the machine was at load ~300): gateway ok; provider red only on
TestCopilotSecretToolUsername's 10s bound under load (#1627), green
3 of 3 alone. The full ./... ran twice and timed out package by
package at load ~270-300 (10m default, then build failures in the
second), so it is not a pass.
Not tried: a real Claude Code against a real Claude Code-only relay.