shiqi_40904 on Discord (#general, 10-27): with Codex as the provider,
switching a routing group of their own on made models go missing from an
agent's model list, and switching it off brought them back.
The cause is in the agent model list dialog. A section with more than 8
models starts folded when the list has more than one section, so that
several providers can be told apart. The Routing groups section counted as
one. With only Codex serving there is one section and Codex's 10 models
show. Switch a group on and there are two sections, so Codex's 10 start
folded under a "Codex 10 / 10" header with no rows. Nothing was missing on
the server side: /api/state's options and counts for every agent only
gained the group (27 -> 28 in the sandbox).
Now only provider sections count toward folding. With two or more
providers the long ones still start folded, as before
(agent-models.test.cjs is unchanged and passes).
Run (worktree at origin/main 5e3dd1d52 + this commit):
- Sandbox: HOME under scratchpad, magpie built from this tree with -tags
dev, Codex upstream faked on 127.0.0.1:3713, app on 3711/3712, found
groups off, a second provider off, Codex connected. Before: group mygpt
off -> Codex 10 rows; on -> Routing groups 1 row, Codex 0 rows. After:
on -> Routing groups 1 row (MyGPT), Codex 10 rows; off -> Codex 10 rows.
With the second provider back on, both providers still start folded.
- New agent-models-group-on.test.cjs, chromium + webkit, en + zh, group
off and on: 8/8 pass. Broken by hand (old rule put back): the 4
"group on" cases fail on "every Codex model is on the screen".
- GUI files that reach the dialog (agent-connect-all-hidden,
agent-models*, agent-model-groups, codex-model-order,
desktop-model-menu, cursor-local-models, grip-inset,
popover-mac-chrome, zcode-models) + i18n-keys: 286/286 pass.
- go test -timeout 45m ./internal/gui/: all ok except
TestMainWindowCorners. Both of its SDK subtests were killed at the 40s
deadline at load ~175 (#1936, #2645). Run alone afterwards: ok in 43.7s.
No Go files changed, so gofmt and vet have nothing new to check.
Not tried: the whole GUI suite (~900 files, at load 150-175; the change
reads no new API and adds no strings). Codex's own /model inside the
Codex app, which this list doesn't decide. Nor the reporter's separate
note that GPT 6.1 sol was missing in Codex itself.
Reported-by: shiqi_40904 (Discord)