Repository navigation
Closed
Labels
enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed
Description
Problem
The TUI status line (renderMakaPiStatusLine) joins all segments left-to-right and hard-truncates the right side with fitLine(truncateToWidth with …) when the line exceeds the terminal width. Consequences:
- At 80 cols (tmux vertical splits, embedded editor terminals are routinely 70–90 cols), a typical session like
Maka · Full access · muse-spark-1.2-contributor · opencode-go · ~/project/maka-agent(~84 cols) already loses cwd; with ctx/cost/cache segments active (~122 cols) nearly half the line is cut at 80 and connection/cwd are cut at 100. - Truncation is positional, not value-based: low-value static segments (connection slug, cwd) and high-value dynamic segments (ctx, cost) are treated equally, and a segment can be cut mid-token (
cache 6…). - Long model ids (e.g.
muse-spark-1.2-contributor, 26 cols) blow the budget with no shortening.
pi-mono's footer degrades gracefully instead: left stats + right-aligned model/thinking, and when space runs out it drops whole lower-value units (provider prefix first, then right side) rather than cutting mid-chain.
Proposal
Priority-aware responsive degradation, no new configuration surface:
- Assemble the status line from segments tagged with drop ranks. On overflow, drop whole segments lowest-value-first, re-checking width after each drop.
- Suggested tiers (drop order):
cache %$cost- connection slug
thinking:<level>swarm/graph- cwd → shorten to basename
- cwd → drop
- final fallback: existing
fitLinetruncation
- Never drop: title, permission mode (safety), goal (burns tokens autonomously), ctx (context budget).
Open question
Do we also want a user-facing config (segment on/off or ordering) on top of this? Deferring unless real demand shows up — responsive degradation solves the narrow-terminal pain with zero config surface.
Acceptance criteria
- 120+ cols: rendering identical to today.
- 80 cols: line fits with low-value segments dropped in the tier order above; no mid-token truncation except as the documented final fallback.
- Safety/money segments (mode, goal, ctx) survive the narrowest widths.
- Unit tests cover the drop order and the never-drop invariant.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed
Activity
me2seeks commentedon Aug 21, 2026
I'm working on this issue.
me2seeks commentedon Aug 21, 2026
Open question for maintainers: should the status line also become user-configurable (segment toggles / ordering) on top of responsive degradation? Current plan is degradation-only — it fixes the narrow-terminal pain without adding a config surface — but if there's demand for configurability, better to know before this lands. This PR implements responsive priority degradation only.
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…
fix(cli): drop drive-root cwd instead of rendering an empty basename (a…
feat(cli): responsive priority-based status line for narrow terminals (…