[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:
- Run
/branchto fork the current session - Narrow the terminal window
- 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.
3 Comments
<img width="2560" height="1080" alt="Image" src="https://github.com/user-attachments/assets/9d4f3a94-adbb-4274-a90a-3b8899a44675" />
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
For your information: the label
reproducedon 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.