With magpie as Codex's provider, the Codex app asks a new conversation's
title on a model it chooses itself, not the one picked for the
conversation: ephemeralGenerationModel, and when the provider's model
list lacks it (magpie's always does), the list's default model, else the
first visible one that takes low effort (app.asar's oX). magpie wrote
the title on that model as asked, so with the conversation on A/dsf4.1
the title went to B/qwen3.7, another provider (tenacious_eagle_96548).
Now a title, description, summary or prediction that reaches /v1/responses
goes on the session's model (codexSideSession, as the ChatGPT route
already did; it waits for the conversation's turn like it does there),
and on the model asked only when no session's model is known.
settings.CodexTitles, when set, still writes every title.
TestCodexOwnTitleFollowsThePickNotTheAppsChoice: the title on third/
(the app's choice) before the turn on fourth/, then a description and a
summary on third/ in that conversation. Red on the old gateway.go (the
app's choice got the requests), green on the new.
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; the oX choice was read from
its app.asar. No real provider accounts. Windows and Linux: vet only.
Reported-by: tenacious_eagle_96548 on Discord