cmux NEXT Inspector: Context opens to Claude's breakdown; Connectors says N to reconnect
In progress (screenshots coming from the Linux gallery).
First of the session-panel pieces (Claude Code desktop's right panel parity, Leo: "Environment, Context and Connectors: their chevrons open their detail").
What changes
- Context, unfolded, now opens to Claude's breakdown: "24% used" with
48K / 200Kon the right, a bar, then a row per part with its colored square, tokens and share of the window. acpmux reports only the totals today (summary.usage), so the parts are Used and Free space; the per-category breakdown (Messages, Memory files, System tools, ...) follows in its own PR. Folded, the head is unchanged:Context › 18% [bar]. - Connectors' head says what Claude's says:
N to reconnectwhen a server failed, elseN connected(it said both before). Unfolded, every server shows its status (Connected, Needs reconnect, Connecting), not only the failed and pending ones. acpmux has no MCP reconnect method yet, so this is a status, not an action. - New string
chatInspector.context.free("Free space") in all 21 agent-pane locales.
Tests
test/chat-inspector-context.test.ts(new): the parts' math: shares sum to 1, usage past the window is full with no free space, a zero window has no shares.test/chat-inspector.test.tsx: Context unfolds to the total line, the bar width and the Used / Free space rows; Connectors' head shows "1 to reconnect" with a failure and "1 connected" without; every server row shows its status.
Observed / Not run
- Ran
scripts/web-lint.sh(pass) andscripts/cmux-next/prepush-gate.py(no new violations). - Not run locally:
bun test(the local guard sends test runs to CI on this Mac); CI's webviews tests cover the changed files.
No capture: webview-only change; gallery before/after to follow.
Changelog
Changed: The Inspector's Context section opens to the percent used, a bar and the used and free space; Connectors shows how many servers to reconnect and each server's status
🤖 Generated with Claude Code
Agent session: cosmic-gray
![View with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png)
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
The Inspector's Context section now unfolds to Claude's breakdown: "N% used", the used and window tokens, a bar, and a row per part with its colored square, tokens, and share of the window. Connectors now says "N to reconnect" when any server failed, otherwise "N connected".
- acpmux reports only context totals today, so the parts are Used and Free space.
- Unfolded, Connectors shows every server's status; the reconnect line is a status, not an action, since acpmux has no MCP reconnect method yet.
- Adds the
chatInspector.context.free("Free space") string to all 21 agent-pane locales. - Adds and extends tests covering the context parts math and the Connectors and Context sections' unfolded content.