Make settings UI reflow on narrow terminals - #317
Merged
TheGreatAxios merged 2 commits intoAug 5, 2026
Conversation
Collaborator
Author
Code review (parent — multi-agent fleet unavailable)Verdict: approve with nits Strengths
Nits
|
9 tasks
Collaborator
Author
Review — approve (with merge-order note)Good extraction. Correctness
Risks / gaps
Verdict: approve — merge ahead of or carefully rebased against #316. |
4 tasks
Collaborator
Author
Multi-agent review (blended: cto / greybeard / neckbeard / critique / bruckheimer)Verdict: Approve Findings
Ready for human review/merge. |
Collaborator
Author
Hard review (greybeard + CTO)Verdict: APPROVE Greybeard
CTOThis is the right abstraction for the problem. Keep form-reflow as the single place for future form width work. No blockers. |
Extract shared form-reflow helpers and wire Settings + Agent Configuration so labels stack, long values keep the caret on-screen, and help footers wrap at ~40-60 columns. Closes CL-5341
…minal fitTrailingText was using string length, so CJK and emoji overran the pane. Also drop the forced 16-column box floor so margin plus width cannot exceed tiny terminals.
TheGreatAxios
force-pushed
the
cl-5341-make-settings-ui-reflow-on-narrow-terminals
branch
from
August 5, 2026 06:12
83a1e44 to
d819098
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Settings and Agent Configuration forms reflow on narrow terminals (~40–60 columns).
Approach
src/tui/components/form-reflow.ts:STACK_FORM_COLUMNS(56) — stack labels above values below this widthformContentWidth— account for margin/padding chromefitTrailingText— keep caret on-screen for long append-only valueswrapHelpSegments— pack help footer into pane-width linessettings-overlay.tsxandagent-modal.tsxto stack fields, shrink padding, truncate long labels/values, and multi-line help.Test plan
form-reflowunit tests (fit/wrap/chrome at 40–60 cols)Closes CL-5341