[BUG] TUI: horizontal separator line renders truncated in narrow terminal windows

Status Open
Maintainer reply ✓ Yes — bcherny
Activity 3 comments · opened Jul 8, 2026
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

In a narrow terminal window, the horizontal separator line rendered below the local-command-caveat notice block (and around the "(Branch)" indicator) doesn't span the full width of the pane — it renders as a short teal line stopping partway across, unlike other horizontal rules in the UI which span the full width.

Steps to reproduce:

  1. Run /branch to fork the current session
  2. Narrow the terminal window
  3. Observe the separator line rendered below the local-command-caveat / branch notice block

Expected: the separator spans the full pane width, consistent with other horizontal rules.
Actual: the separator is truncated partway across the screen.

Screenshot to be added as a follow-up comment.

View original on GitHub ↗

3 Comments

mvladt · 3 months ago

<img width="2560" height="1080" alt="Image" src="https://github.com/user-attachments/assets/9d4f3a94-adbb-4274-a90a-3b8899a44675" />

bcherny collaborator · 1 month ago

Confirmed — reproduced on 2.1.233 (Linux, tmux). After running /branch, the separator line that carries the branch label ("… (Branch)") renders correctly at normal widths, but once the terminal gets narrow enough that the label no longer fits (≈34 columns for my session), the horizontal rule collapses to a short stub and the line wraps, instead of the label being shortened to keep the rule spanning the pane. I also saw the plain separator below the input box briefly wrap by a few characters right after resizing.

So the separator itself is fine at moderate widths — the truncation shows up when the embedded label is wider than the window. Marking this as a confirmed rendering bug.

🤖 Generated with Claude Code

marcindulak · 26 days ago

For your information: the label reproduced on this issue does not prevent it from becoming stale and eventually auto-closed. See https://github.com/anthropics/claude-code/issues/87647 for details, and consider upvoting that for visibility.