Found while looking into maomao_00001's report on Discord: the Windows
Codex app offered no xhigh or Ultra for a relay's model. Their relay
(vip.aipro.love, ids from its public /api/pricing) names its 31 models
plainly, and every one already got its full levels in
magpie-models.json before this change and gets the same after it, so
this is not their fix. Exact ids (gpt-6.1-sol, openai/gpt-6.1-sol)
were fine; two spellings other relays use were not:
- OpenAI's dated snapshot id (gpt-6.1-sol-2026-09-29) was unknown to
the catalog, so it got the low/medium/high fallback. borrowedEfforts
now drops a dated suffix and takes the base model's levels.
- A relay's rename (codex-gpt-6.1-sol, "[A] gpt-6.1-sol", an id the
user marked the same as gpt-6.1-sol) got the levels up to max but no
Ultra, because OffersUltra matched exact ids only. It now matches
through catalog.IsOneOf, the lookup ContextOf and EffortsOf use.
Only known models change: a dated id whose base is unknown
(model-x-2026-01-01) keeps low/medium/high, a dated Luna gets its own
levels without Ultra, and glm-5.3-flash keeps [low high max].
Not changed: a dashed-date id's window and price are still unknown,
because catalog.SameModel doesn't strip that date form (#5643).
Run:
- TestCodexCatalogRelaysKnownModelsLevels red on the old code (the
dated Sol and Luna at [low medium high], three renames without
ultra), green with the fix.
- gofmt -l clean; go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./... and builds on mote.
- go test -tags nogui ./internal/catalog ./internal/provider
./internal/agent ./internal/codexcat on mote: all ok.
- The relay's 31 ids put through codex's Set with the real
models.dev file (a probe, not committed): the same levels on
origin/main and with this change.
- Full suite: not finished. My probe runs reused the suite's copy
on mote, so it was stopped; it runs again after the push.
Refs: maomao_00001 (Discord)