Kylin_Cloud on X reported that after hiding single models in an agent's model
list on the Agents page, the provider's editor still showed every model ticked,
as if the change hadn't synced. These are two different settings. The editor's
picks apply to every agent, while an agent's own list (HiddenModels, or
PickedModels in "only" mode) can still leave a model out. Showing both as one
tick hid the second.
The editor now shows the truth without merging the two settings:
- /api/providers gives each agent's `hides`: the provider's models that the
agent's list leaves out (provider.ModelOff). They are read once per shared
list (a WSL copy or an omp profile is not told twice), and only for agents
whose list leaves something out.
- Under the models, one line per agent: "Codex's model list leaves out beta:
shown again from there, on the Agents page." The chip's title says the same.
- With "Only through routing groups" ticked, no agent lists the models, so no
line appears. A picked chip's title says the routing groups use it and agents
don't see it.
No layout change: the line is a hint, like the "in no routing group" hint
beside it. It has no left border. Strings are in zh, zh-TW, ja and de.
Run:
- gofmt -l: clean. go vet -tags nogui for darwin, linux and windows
(internal/gui, internal/provider) on mote: ok.
- TestProviderInfoSaysAnAgentsHiddenModels (new) on mote: ok.
- agent-hides-editor.test.cjs (new), en/zh/zh-TW/ja/de at 1000px and 420px:
- Chromium on mote: 10/10.
- WebKit on mote: 10/10 timed out at launch (#4125). WebKit on the Windows
box (win-run): 10/10.
- The full Go suite and the whole GUI suite were run at the head after the next
commit; see its body.
Broken by hand:
- With drawHiders() left out of draw(), the GUI test was red 10/10 (Chromium).
- With providerInfo's hides never filled, the Go test was red ("Codex leaves
out relay's b ...: map[]").
Not tried: the real app with a real agent's hidden models. Only fixtures and a
sandbox HOME were used.