Files
magpie/internal
yetone e4bc3eeb6f gui: the context window card's head keeps its title, icons and model apart at every width
packinggoods on Discord, in #feedback: in a narrow window the Routing
page's "Context window" head drew the provider's icon over the end of
the title. The mono model id (remote-magpie/claude/cla...) and the Live
pill sat beside it. The cause was .ctx-fold, the title's button when the
card can fold. It had min-width:0, so it shrank under the route, and the
title's nowrap text ran on under the icons.

The title no longer shrinks (flex:none). The route and the state now go
together in .ctx-end, and the head wraps. Where the title leaves them too
little room they take a line of their own, ending at the right, and the
model id is cut there with an ellipsis. A folded card stays one line. At
520px and below it drops the agent's name and the lab part of the route.
At 420px and below it drops the route and the state's word, keeping the
state dot and the bar. The fold button keeps an outer height of 20px
(margin -1px), so opening the card doesn't move the page.

New test, ctx-head-narrow.test.cjs. It uses the reporter's model, live
and counted, with and without the agent, with and without a known window.
It runs en, zh, zh-TW, ja and de, at 1100 down to 340px, open and folded,
in Chromium and WebKit. It checks that the title's text is whole, that no
drawn parts overlap (boxes clipped to their overflow ancestors), that an
icon is never part-cut, and that nothing runs past the card.

Run at this head (rebased on a fresh origin/main), on mote, both engines:
ctx-head-narrow, ctx-route, context-window, routing-context-fold,
routing-ctx-still, routing-ctx-fold, routing-live-patch and i18n-keys:
188 pass, 0 fail. The whole GUI suite is running on WSL (Linux, both engines)
and had not reported when this was pushed. Mote was busy with three other
sessions' full suites. The owner's rule is to ship a verified fix at once.
Any red it finds that this change caused gets an issue.

Broken by hand: ctx-head-narrow on the old context.css/js is 52 of 52
red (e.g. "open at 580px: the title is whole ... cut:true", "title and
lab icon overlap").

Not tried: the real Wails app (WebKit on macOS, WebKitGTK on Linux,
WebView2 on Windows).
2026-11-04 01:39:01 +08:00
..
…
…
…
…
…
…
…
…
…