Connected beside the ChatGPT sign-in (openai_base_url to magpie), Codex
picking one of its own models in /model still goes through magpie, but
Drift() called it "replaced" and the Agents row went red with Reconnect,
which reads as a broken gateway (Essaim8, #2424). Joined agents already
treated such a pick as one made in the agent; Beside now does too, for
Codex and StepCode alike. Wired() already counted both as connected.
Without a sign-in a model off magpie is still told as replaced.
Run:
- TestCodexOwnPickAfterMagpieModelStaysConnected and
TestCodexGroupByItsModelName red on the old applied.go (drift
"replaced" on gpt-6.1-sol / gpt-6.1 / gpt-5.5 beside the sign-in),
green after.
- go test ./internal/agent ./internal/gui ok; gofmt clean; go vet
-tags nogui for darwin, linux, windows ok on agent, gui, gateway.
Full suite: go test -tags nogui -count=1 -timeout 45m ./... ok, every package (at this batch head).