士奇 on Discord (Simplified Chinese GUI, the third report of this): with
routing groups off, Hermes Agent's and WorkBuddy's model lists had the
ChatGPT subscription's GPT models. With routing groups on, they were gone.
Cause: the user's group names those models and lists itself alone
(Group.Unlists, the routing plugin's option for that, #1783). While the
group is on, catalogKeeping drops what it names from Catalog(), and every
agent's list starts from Catalog(). With groups gated off the group's
Unlists goes away, so the models came back. a3ee00c05 kept them for the
Codex agent only; its body said other agents still didn't see them.
Fix, at the one point every agent's list starts from: catalogOf(agent)
keeps a signed-in subscription's own models (SubscriptionKept: no group
entry, Provider.Account set, the provider not kept for routing groups)
for every agent, so a group is added on top of what agents had. A client
that is no agent ("" on /v1/models) still gets the group alone, as #1783
asked. Provider.Unlisted ("Only through routing groups") still hides the
provider's models from agents other than Codex. Unlisted() no longer names
a kept subscription model, so the picker's note doesn't call it kept for
groups.
Siblings: every agent writer reaches catalogOf through CatalogFor and
ListedFor. Two gateway lookups read Catalog() directly and now use the
agent's catalog (CatalogOf): /v1/models/{id} and Claude Desktop/Science's
alias lookup. agent.go and codex.go read Catalog() only for error text or
a fallback and are left alone. The routing plugin's hint for that option
says, in every language, that a signed-in subscription's models stay in
agents' lists.
Test: TestSubscriptionModelsStayInEveryAgentsListWithGroupOn signs in a
ChatGPT account in a sandbox and switches on a group naming its 5 models
that lists itself alone. For every agent that lists the group (68,
including hermes, workbuddy, claude and codex), the agent's list and
CatalogFor have the models, and a picker offering the group offers them.
Catalog() and CatalogFor("") still don't. With the provider set to
Unlisted, Hermes doesn't list them. TestCodexOwnModelsListedOnlyThroughGroups
now expects Claude Code to keep the models under a group alone.
Run (on mote):
- Broken by hand: catalogOf reverted to a3ee00c05's Codex-only version.
The new test went red with 340 errors across 68 agents, e.g.
"codex/gpt-5.5 not in hermes's list map[group/mygpt:true]", and the
same for workbuddy, claude and claude-desktop. Green with the fix back.
- gofmt -l; go vet on darwin, linux (nogui) and windows; builds: clean.
- go test -timeout 45m ./... at 035d87b80 (this change on 4a4a90c23,
before a test comment was reworded): every package ok except
- internal/gui TestMainWindowCorners/macOS_26_SDK: #3949, red on
origin/main accb951ab on mote too (macOS 27);
- internal/provider TestClaudeAccountServesModelsListedSinceItsFetch:
#3174 (red in a full run, green alone). 5 of 5 green alone and
green in a whole internal/provider run at that head.
- At this commit on b26fa0903: gofmt -l on the
changed Go files, go vet of provider, gateway and gui on darwin, linux
(nogui) and windows: clean. internal/provider whole: ok.
internal/gui and internal/gateway with -run
"Codex|Group|Subscription|Unlist|Catalog|AgentModel": gui ok; gateway
red on TestAntigravityTurnsCodexsGPT5ThreadAwayOnce and
TestCodexSpentGrokFailingIsTold, both red the same way on origin/main
b26fa0903 (3 of 3) and filed as #4362.
- GUI files the change reaches, on b26fa0903: agent-model*, group-unlists and
i18n-keys: every Chromium case and i18n-keys pass (46); every WebKit
case timed out launching the browser (180s, #4125: WebKit doesn't start
on mote right now). The same files at 035d87b80 passed in both engines
but i18n-keys, whose one red (the new test quoted a routing-plugin
word) is fixed here.
- Rebased on 101775657 (main had moved models.go and gateway.go): gofmt,
go build for darwin, linux (nogui) and windows, go vet of provider,
gateway and gui on all three: clean. go test -run
"Codex|Group|Subscription|Unlist|Catalog|AgentModel" ./internal/gui
./internal/provider and -run "Model|Desktop|Alias|Catalog"
./internal/gateway: ok.
- The whole GUI suite (1004 files) at fd50ed116 was still running when
this was pushed (mote shared with other sessions' suites). Reds it
shows get their own issue unless already red on main.
Not tried: no live ChatGPT account and no real GUI app run (the test signs
in a sandbox account). No separate gateway test for /v1/models/{id} or the
Desktop alias lookup. Provider.Unlisted stays honoured, on purpose.