Repository navigation
fix(tui): show the Inspector version in the header - #2706
Merged
Merged
Conversation
The header box was one row tall and also drew a bottom border, which took that only row and left the title zero height, so Ink clipped the right-justified version. Size it to two rows. On a terminal too narrow for the full title, truncate the description rather than letting it wrap into the border row and squeeze the version out. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The layout fix is focused, correctly accounts for available height, and includes appropriate regression tests.
0 open findings
What changed in this PR
Fixes the TUI header layout so the Inspector version remains visible across standard terminal widths.
Changes:
- Reserves separate rows for header content and its border.
- Prevents the name/version from shrinking while truncating the description.
- Adds coverage for 100- and 80-column terminals.
| File | Description |
|---|---|
clients/tui/src/App.tsx |
Corrects header sizing and narrow-width layout. |
clients/tui/__tests__/App.test.tsx |
Verifies version visibility, truncation, and border placement. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Member
Author
|
Copilot review loop closed: round 1 came back clean (0 inline comments, nothing in the body or a suppressed block), so no further rounds were requested. |
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.
Closes #2656
Problem
The TUI header box was
height={1}and also drew a bottom border. Ink sizes the border inside the box, so the border used the box's only row, the title row got zero height, and the right-justifiedv{APP_VERSION}was clipped off screen.Fix (
clients/tui/src/App.tsx)headerHeightis now2: one row for the title and one for the border.availableHeightderives from it, so the panes below shrink by the row the header really uses.flexShrink={0}), and the description truncates with…(wrap="truncate-end").Tests
clients/tui/__tests__/App.test.tsxhas a newheaderblock with two cases. Each checks the title row, the version at its right edge, and a clean border row below it:Both cases fail without the
App.tsxchange and pass with it.npm run local:gatepasses.Screenshots
Captured from the built launcher (
--tui) in a real pty. The raw output was replayed through@xterm/headlessand rendered to PNG.160×40 (the issue's repro): before / after


80×24: before (title missing entirely) / after


🤖 Generated with Claude Code