Reported: 未寒 picked auto/claude-opus-5-5, and the Routing live view and
Usage's Requested column named it group/auto-claude-opus-5-5, an internal
id that agents never see.
Changed:
- internal/gateway/trace.go: GroupRef and SubGroup carry Ref
(Group.Ref(), the id agents pick the group by).
- internal/gui/trace.go: publicRoute rewrites a route's Model,
For.Model, Subagent.Asked/To and the group's and subs' Ref through
provider.PublicRef (memoised per answer). It copies the pointers
before writing, so the gateway's trace is left as it was.
- internal/gui/context.go: the Context page's model too.
- internal/usageapi/usageapi.go: the ledger page's Requested.
- routing/client.js: useName falls back to a sub's ref.
Test: TestRoutesNameFoundGroupsByTheirPublicID
(internal/gui/trace_publicref_test.go). Broken by hand, each one red:
- publicRoute made a no-op: red on model, group, subagent, For, Subs
and route.
- usageapi mapping removed: `the ledger's Requested:
["group/auto-claude-opus-5-5" "group/mine"]`.
- contextRoutes mapping removed: `the Context page's model:
"group/auto-claude-opus-5-5:high"`.
- Ref dropped from gateway/trace.go alone stays green, as expected:
publicRoute fills an empty Ref.
Not covered: the ledger's text search (usage.Filter.Query) still matches
the stored group/auto-… form, not the shown auto/… (package usage can't
import provider). client.js's ref fallback has no GUI test of its own.
Run, go1.26.8 darwin/arm64, sandbox HOME, private GOCACHE:
At this stack on origin/main df6bd3efe (head 48522d851):
gofmt -l: nothing
go vet ./... (darwin), GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...: ok
set -o pipefail; go test -timeout 45m ./...: ok, EXIT=0
(68 ok, 19 with no test files; agent 528s, gateway 628s,
library 482s)
GUI, playwright 1.62.0, chromium and webkit, concurrency 3: the
171 files near this change (routing*, panel-routing*,
window-mask, privacy*, usage*, quota*, providers*): 2217 tests,
2183 pass, 34 fail. Every red is also red alone on origin/main:
quota-count-wrap and quota-name-translated (#2228),
usage-agents-hide (#2276), usage-checkin (#3091), usage-fold
(#2163), usage-ledger (#3104, red since df6bd3efe, green at its
parent). window-mask: 20 of 20.
At this stack on origin/main c922225f1 (head 91baa7adb), before
df6bd3efe's routing trace change:
set -o pipefail; go test -timeout 45m ./...: ok, EXIT=0
(66 ok, 20 with no test files)
the whole GUI suite (823 files, both engines, concurrency 3):
11589 tests, 11554 pass, 35 fail. The 9 files red were run again
alone at --test-concurrency=1 on the head and on origin/main
a8ecf4020. The same 7 files were red on both: the five issues
above plus s3-sync (#2448) and library-row-remove (#3099).
nav-sub-unroll (#1950) and plugin-updates (#3103) were red only
under the full run. codex-predictions (#2624) was 20 of 20.