Codex signed in to ChatGPT, its config's model one provider's (B/qwen3.7),
the conversation put on another provider's (A/dsf4.1) in the Codex app:
the first new conversation's title was written by B. The app asks for a
title on a temporary thread with no link to the conversation, sent as
the first message is, so it can reach magpie before that conversation's
first turn. codexLeads.sideOf waits for that turn when the key's last
turn is old, but when the key had no turn at all (nothing through magpie
since it started) it returned at once with nothing, and servedSession
fell back to CodexSideModel, the config's model. Now such a call waits
the same way (codexSideWait, 5s, or its cancellation) and takes the
turn's model; the config's model only when no turn comes. A memory call
before any turn (Codex consolidating as it starts, no turn on the way)
still takes the config's model at once. A model set for titles in
magpie's settings (settings.CodexTitles) still wins, as before.
TestCodexFirstTitleFollowsThePickNotTheConfig: fresh server, config on
third/, the title sent, then the conversation's turn on fourth/. Red on
the old codex_follow.go ("the config's model got 1 requests, the title
among them"), green on the new. TestCodexSideTurnsOnThePickedModel sends
side turns with no turn ever: it sets codexSideWait to 0 so it doesn't
wait 5s on each.
Run (mote, at this commit's tree):
go build ./..., go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...: clean. gofmt -l: clean.
go test -count=1 -run Codex ./internal/gateway/: ok (172s).
Full suite (go test -tags nogui -timeout 45m ./..., through the suite
lock) was still queued/running at push; any red it shows gets an issue.
After a rebase onto 6b7ee4a98 (its routing commits touch gateway.go
and the routing doc too), go build, the three vets and
go test -run 'Codex|Routing|Group' ./internal/gateway/ ran again at
that tree. Then rebased onto 9451ad59f (two gateway commits touching
none of this change's files); go vet ./internal/gateway/ there only.
Not tried: the real Codex app was not run; its title model choice was
read from its app.asar. The Codex 0.165.0 TUI with magpie-style config
(model B, -m A, fake Responses server) sends its title on A, so the TUI
was never affected. No real provider accounts. Windows and Linux: vet
only. The same report on the /v1 route (magpie as Codex's provider) is
the next commit.
Reported-by: tenacious_eagle_96548 on Discord