fix(cmux-next agent activity): the split view's title and actions fit a narrow pane
Layout pass, running list (lane: layout-pass; full list in cmuxterm-hq knowledge/layout-pass.md)
- Merged: #22785 Settings, #22825 Markdown toolbar, #22839 Chief latency bars, #22847 Harnesses, #22862 gallery Settings cascade, #22872 editor find pill, #22880 gallery model picker
- Open: #22897 diff toolbar beside the files sidebar, #22904 Passwords in a narrow pane
- This PR: Agent Activity's split view in a narrow pane
- Next: stats week heatmap, icon-picker search placeholder
What
At 480px (the gallery's narrow width) the split view's 270px session list left the detail about 210px. The detail header's title, status and three buttons couldn't wrap, so the title went one word per line ("Book / the / team / offsite") and Watch ran off the edge.
.splitcolumns are nowclamp(200px, 46%, 270px) minmax(0, 1fr). The list gives up width first in a narrow page and is unchanged from about 590px up..detail headerwraps. Its title (strong) keeps one line and ellipsizes, and the actions wrap under it, still pushed right bymargin-left: auto.
At 1000px nothing moves.
Test
CMUX_BROWSER_TESTS=1 bun test test/agent-activity-split.test.ts (real Chromium). A small harness renders the gallery's own split fixture with the page's styles. At 480px and 1000px it checks that the title is one line and every action stays on screen. At 1000px it also checks that the header is one line.
- Base (red commit): 480 fails with the title on 4 lines.
- Head: 2 pass.
Screenshots
Gallery pages.agent-activity / split. "Before" is the base gallery; "after" is the same page with this PR's styles.css applied.
| Before | After | |
|---|---|---|
| 480, dark | ![]() | ![]() |
| 480, light | ![]() | ![]() |
| 1000, dark | ![]() | ![]() |
| 1000, light | ![]() | ![]() |
Observed / Not run
- Observed: the test above, red then green.
prepush-gate.py: no new violations.vp fmt --checkandoxlintare clean. - Not run locally:
bun run checkand a gallery build, because heavy jobs moved off huge-blue. - Not this PR: the broken-image placeholder in the preview (fixtures have no frames). The lanes view's colors are noted for a separate pass.
Changelog
Fixed: in a narrow pane, Agent Activity keeps the selected agent's title on one line with its actions on screen.
Agent session: huge-blue
🤖 Generated with Claude Code







