Files
magpie/internal
yetone 39bebbbdf3 gateway: Claude Desktop's Code tab and a build with no version keep the mythos alias (#2426)
67293346e gave Desktop the plain anthropic/magpie-<n> alias whenever its
User-Agent had no " Claude/<ver>". The Code tab's Claude Code calls with
"claude-cli/2.1.x (external, claude-desktop)" and current builds, so its
reasoning-level models lost their effort picker. desktopKnowsMythos is
now false only for a build whose version it reads and that is older
than 2; no version reads as a current build.

Run:
- On 67293346e's desktop.go the Code-tab UA listed
  anthropic/magpie-5487751739; with this it lists mythos-magpie-<n>.
- desktop_models_test: the old build gets the plain alias; the 2.7032
  UA, the claude-cli UA and "" get mythos-magpie-<n>.
- go test -count=1 -timeout 45m ./internal/gateway ./internal/provider ok.
- gofmt clean; go vet -tags nogui darwin, linux, windows ok on gateway.
Full suite: gateway and provider only here; the release head runs ./... before its tag.
2026-10-16 00:46:27 +08:00
..
…
…
…