Files
magpie/internal
yetone 3d063e34fd providers: the editor names a routing group listed alone that keeps a model from agents (hayden4608)
hayden4608 on Discord: with a provider's "Only through routing groups"
switched off, its models still weren't on the Agents page. Switching it
off does bring them back to every list (tried in a sandbox HOME on mote:
POST /api/provider/save unlisted:false, then /api/agent-models/codex,
/api/state's Codex options and provider.Catalog all list them; nothing
caches the old list). What still keeps them out, with the switch off,
is a routing group whose Model lists is "The group alone"
(Group.Unlists, #1783): its members leave every agent's list. The
editor said nothing of it, so the switch looked broken.

The provider's JSON now carries keptBy (provider.GroupKept: model ->
the names of the groups listed alone that keep it out, a signed-in
subscription's models excepted as Catalog excepts them), and the editor
says under the models, and on each chip, which group keeps which model
out and that its Model lists is changed on the Routing page. Words in
zh, zh-TW, ja and de. unlistedByGroups returns the groups' names now
instead of a bool; Catalog and Unlisted read it as before.

Not confirmed for hayden's own setup: the other reasons a model is
missing there are Codex's list in "Only models I pick" (the editor
already names that agent) and GitHub sync bringing the other device's
providers.json back (newer wins per part). The reply asks which.

Run on mote at e94fb18b8 + this change; at this head (rebased on c63c2136b,
which touched internal/provider/visible.go) the provider and gui packages
and the new GUI file ran again with the same results:
- gofmt -l internal/provider internal/gui: clean
- go vet -tags nogui (darwin, GOOS=linux, GOOS=windows) ./internal/provider ./internal/gui: ok
- go test -tags nogui -count=1 ./internal/provider: ok
- go test -tags nogui -count=1 ./internal/gui: one red, TestSettingsSaveKeepsWhatItDoesNotSend
  (SearchAll), filed as #4514, not this change
- GUI, Chromium and WebKit: unlisted-group-kept (new, en/zh/zh-TW/ja/de,
  1000 and 420px), agent-hides-editor, unlisted-models, group-unlists,
  i18n-keys: 67 of 68; the red is i18n-keys' "Unmarked", #4524, not this
  change
- core budget tests: ok (app.js 1,310,619 of 1,316,874, no raise)
Broken by hand: GroupKept's loop out of providerInfo makes
TestUnlistedGroupKeptSaid red (keptBy map[]); the old app.js makes the
new GUI file 0 of 20.
Not run: the full go test ./... (another session's full GUI suite was
on mote); no real Discord user's settings tried.
2026-10-31 21:00:55 +08:00
..
…
…
…
…