The owner: Pi's icon in the context window's head was oversized. context.css
had two unscoped `.ctx-who` rules. The later one, for the Context tab's agent
cards (20px icon, 8px gap, display flex), overrode the head's 14px one by
source order. The card rules are now scoped to `.ctx-who-box`, where both
card renderers put their `.ctx-who`.
Run on mote, both engines, every language: ctx-route (52), context-window
(24), context-scripts (22), routing-ctx-fold (6), routing-context-fold (24),
routing-live-patch (10), all pass. These are every GUI file that renders
.ctx-who.
Broken by hand: with the old context.css, ctx-route's new width check fails
with "the agent icon is 14px wide (20)".
Not run: the rest of the GUI suite. Nothing outside context.js uses .ctx-who.
The owner asked for the agent's name and the model's icon on the
context window card, and picked design A from a mock-up: in the head,
right of the title and before the state pill,
[agent icon] Claude Code › [lab icon] anthropic/claude-sonnet-5-5
- context.js: the head's model is now a route (.ctx-route): the agent's
icon and name (agentIcon, agentLabel, as the Usage page names it), a ›,
then the model's lab icon before its id. labIcon picks the lab from
the id after its provider prefix (Claude, OpenAI's gpt/o-series/codex,
Gemma, Gemini, DeepSeek, Qwen, Kimi, GLM, Grok, MiniMax, Doubao,
Mistral, Llama, MiMo, Step, Hunyuan); an id it doesn't know gets no
icon, so a wrong logo never stands for a model.
- context.css: the name in --fg-2 at 500, the › in --faint, the agent's
icon 14px and the lab's 12px; the model id keeps its ellipsis. In a
card 420px or narrower the agent's name and the › go and its icon
stays; folded and that narrow, the model goes as it did before.
- core_budget_test.go: lowered to 1,532,958, the core after this and the
text viewer's move to ctxtext.js (the commit before), on origin/main
0fe9f97c1.
Tests: ctx-route.test.cjs, Chromium and WebKit, en/zh/zh-TW/ja/de: the
agent's name and icon, the lab icon for Claude, an OpenRouter-prefixed
GPT, DeepSeek and GLM, none for an unknown model, the route still on
the folded head's one line, the name gone and the icon kept at 400px,
nothing past the head, no page error.
Run at this head:
- the full GUI suite on mote (6 wide) before the last rebase: 16,938
tests, 283 red in 50 files. Those 50 files again at 2 wide: 292 red,
and at origin/main 2cca11176: the same files red (model chips, rule ⋯,
Settings redraw, fetched editor; #4600), context-map's 420px "two
tiles overlap" among them (#3488).
- after the rebase on origin/main 0fe9f97c1, on mote: go test
./internal/gui: only TestSettingsSaveKeepsWhatItDoesNotSend (#4514)
and TestMainWindowCorners (#3949) red, as on main; Budget ok. The
ctx*/context* GUI files, old-webkit and i18n-keys: 346 tests, 6 red:
context-map 420px (#3488) and i18n-keys "Unmarked" (#4524).
- rebased again on origin/main 20482d71f (two commits, 21 lines of
GUI assets): TestCoreScriptBudget ok there.
Broken by hand, each red, then put back:
- labIcon returning nothing: 42 of 52 red ("the model's lab icon");
- the narrow rule removed: 12 red ("a narrow card leaves the name out");
- the route hidden when folded: the folded case red in every language.
routing-ctx-still.test.cjs is red on Windows 16 of 16 ("used held
still", the big figure's width 60.97 to 61.5), the same frames at
origin/main a4151142a alone (#4494).
Not tried: the real app on Windows (WebView2) and Linux (WebKitGTK).