abledo: "为什么claudecode的magpie模型选不了?其他的agent可以选". Claude Code
pointed at a relay through its own ANTHROPIC_BASE_URL showed that relay's
Claude models first ("Claude Code · <host>", a dozen-plus rows), and with
the current model lifted to the top every magpie model sat below the fold.
The server always sent them; only the order hid them.
openPicker now orders: the picker's own choices (Automatic, Off), routing
groups, each provider's models, then the agent's own direct rows. This
covers every agent with direct rows (Claude Code, Codex, dsh), not only
Claude Code. The current model is still lifted to the top.
Run:
- new claude-picker-magpie-first.test.cjs: chromium + webkit, widths 1100
and 420, en/zh/zh-TW/ja/de, wired false and true: 22/22. Fails on the
old app.js (own group before Zhipu).
- claude-picker-fold.test.cjs updated for the new order (own group and
its fold row last): 22/22.
- the 67 GUI tests that touch direct rows or #pop, with the change: green
except claude-picker-fold before its update. searcher-pick chromium zh
failed twice under load at its scrollIntoViewIfNeeded after reload
(#1745); it passes alone 2/2 and in the later batch.
- go test -tags nogui ./internal/gui: ok.
Not tried: the real desktop app with a real relay-configured Claude Code.