Commit Graph
1 Commits
Author SHA1 Message Date
yetone d7bdb0765f agent: with magpie Codex's provider, Codex's own models on the Agents page say what picking them does: one magpie serves on a ChatGPT account is picked as magpie serves it and Codex stays on magpie; any other reads "direct, not via magpie" and asks before taking Codex off magpie (#1269, shenghsi)
Picking Codex's own gpt-5.5 tagged "via magpie" while magpie was Codex's
provider took Codex off magpie at once, with no question: the tag came
from routed(), but set() unroutes for a model of Codex's own unless it is
joined beside a ChatGPT sign-in or on magpie API.

Verified: TestCodexProviderOwnModelSaysItsPath fails without the change
(gpt-a reads Via:true with no ChatGPT account; Value gpt-a, not
codex/gpt-a, with one), passes with it. Reproduced and checked in a
sandbox HOME with Playwright against `magpie web`, on macOS and on Linux
(WSL2 Ubuntu 24.04, codex-cli 0.161.0): before, picking gpt-5.5 left
Codex "Not connected"; after, it reads direct and opens "Take Codex off
magpie?". go test -tags nogui ./... green; go vet for darwin, linux,
windows on internal/agent.
2026-10-08 17:06:48 +08:00