Skip to content

feat(tui): compact prompt spacing and tool panels - #152

Merged
quickbeard merged 2 commits into
mainfrom
compact-prompt-spacing
Aug 2, 2026
Merged

quickbeard merged 2 commits into
mainfrom
compact-prompt-spacing

Conversation

@quickbeard

@quickbeard quickbeard commented Aug 2, 2026 •

Copy link
Copy Markdown
Owner

What

  • Tighter prompt block. The input box's interior paddingTop={1} is replaced by a half-block ▄ top-edge row, mirroring the existing ▀ bottom edge, so the box keeps a visible lip at half the height.
  • Footer on the last row, no blank row above the box. The session content container drops its paddingBottom={1} and its gap={1} — the gap fired between every pair of children: it left a phantom blank row between the prompt block and the trailing zero-height flexGrow spacer, and a full blank row between the transcript and the input box. The half-block lip is now the only transcript↔prompt separation, and the status footer sits on the terminal's last row instead of two rows above it.
  • No stray line on tool-output panels. BlockTool drew a border={["left"]} ┃ glyph in theme.background over the panel background, which rendered as an odd thin vertical line along the left edge of bash/generic tool output. The border props are removed and paddingLeft goes 2 → 3 so the content column is unchanged. The red error-block accent border is untouched.

Verification

  • bun typecheck in packages/tui
  • test/todo-panel.view.test.tsx, test/interrupt.view.test.tsx, test/sidebar-hint.view.test.tsx pass
  • Drove the TUI in tmux with real agent turns: compact box with symmetric half-block edges, transcript riding directly on the top lip, footer flush with the terminal bottom, clean left edge on the $ ls output panel

Bookkeeping

  • DIVERGENCES.md: new row for the prompt/footer spacing; BlockTool border removal folded into the existing left-accent-border row
  • CHANGELOG.md: two Unreleased TUI entries

🤖 Generated with Claude Code

quickbeard and others added 2 commits August 2, 2026 16:16
- Replace the input box's full-row top padding with a half-block top edge
  mirroring the existing bottom edge
- Drop the session container's paddingBottom and gap (the gap left a
  phantom row between the prompt and the zero-height spacer); move the
  transcript-to-prompt separation to marginTop on the prompt block, so
  the footer sits on the terminal's last row
- Remove BlockTool's background-colored left border glyph that rendered
  as a stray vertical line on tool-output panels; paddingLeft 2 -> 3
  keeps the content column

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The half-block top edge is now the only separation between the last
transcript line and the input box.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 6b79798 into main Aug 2, 2026
1 of 5 checks passed
@quickbeard
quickbeard deleted the compact-prompt-spacing branch August 2, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant