XYenon on Discord (#feedback, 10-30): autoGroups() and spelledIn() picked
a found group's name and its public id apart, so a group read
glm-5-3-flash beside auto/glm-5.3-flash. The id also followed the order
the providers were added in.
Now:
- spelledIn takes the spelling models.dev gives the model most
(catalog.Spelling, the normal index normalFor already reads): every
member spelling of GLM-5.3 Flash (glm-5-3-flash, Ark's
glm-5-3-flash-260828, glm-5.3-flash) gives auto/glm-5.3-flash. A model
models.dev doesn't know keeps the old pick (first listed member
spelling, else the first member's).
- autoGroups names the group from the same choice: catalog.NameOf of
that spelling, else a vendor's own name, else the spelling itself.
A found group the user changed keeps the name they saved.
- Old ids keep working. group/auto-<slug> doesn't change, and any
auto/<spelling> is still the group (CanonicalRef: gateway, key
allow-lists, fallbacks, members). PublicRef now takes an old
auto/<spelling> to the current one too, so hidden, picked and ordered
models saved by it hold, and a pick of it written now (Agent.Apply)
is written as listed. An agent field magpie set to an old spelling
moves on the next SyncCatalog (renameFoundGroups), as group/auto-
values already did, because OpenCode checks its model against the list
magpie writes. A value the user set stays as it is and is still served.
Tests (on mote, via mote-run):
- TestFoundGroupIDAndNameAreOneSpelling (5 member orders/spellings, the
user's name kept), TestFoundGroupUnknownToModelsDevNamedByItsID,
TestFoundGroupMovedOffAnOldSpelling. The catalog fixtures use
models.dev's real spellings and names (glm-5.3-flash "GLM-5.3-Flash",
volcengine's glm-5-3-flash "GLM 5.3 Flash").
- Broken by hand, one file reverted at a time: group.go reverted, the
test is red (named "GLM 5.3 Flash" beside auto/glm-5.3-flash);
provider/autoref.go reverted, red (id auto/glm-5-3-flash with Ark first,
PublicRef of the old spelling unchanged); agent/autoref.go reverted,
TestFoundGroupMovedOffAnOldSpelling red (field stays
magpie/auto/glm-5-3-flash).
- go test -timeout 45m: internal/catalog, provider, agent, tui, cli,
usageapi ok. internal/gui: everything ok except TestMainWindowCorners/
macOS_26_SDK, which is #3949 (AppKit on macOS 27, nothing to do with
this change). internal/gateway, codexcat, sessions ok.
- gofmt -l clean; go vet darwin, linux -tags nogui, windows clean.
- No GUI file changed, so the GUI suite wasn't run. Names reach it
through /api/groups.
Not tried: a real models.dev sync with real providers in a sandbox app.
Groups whose first provider spelled a model differently from models.dev
(e.g. claude-opus-4.8 from a relay vs Anthropic's claude-opus-4-8) get
the models.dev spelling once. Magpie-set agent fields move with it, and
values the user set keep resolving. A key or fallback chip saved under
the old spelling still shows it in the editor (it still works).