[Bug] Status line truncated when attached to claude agents managed session

Status Fixed / completed
Reported on v2.1.150
Maintainer reply ✓ Yes — bogini
Activity 6 comments · opened May 23, 2026 · closed May 27, 2026
💡 Likely answer: A maintainer (bogini, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
When attaching to a managed session from claude agents, the status line (custom) in the input area is truncated — it cuts off mid-line instead of displaying fully, unlike in a standalone session where it renders completely.

Also just want to say — claude agents is a fantastic feature, really appreciate the work that went into it! <3

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.150
  • Feedback ID: 398fc630-fef6-42c9-aa1d-8abb13104cbc

Errors

[]

View original on GitHub ↗

6 Comments

giruuuuj · 3 months ago

Analysis

The status bar width is calculated based on the terminal width, but when attached to a managed session, the UI reserves additional columns for the "attached" indicator/sidebar. The status bar renderer doesn't account for this offset, so it writes past the available width and gets truncated.

Root cause

The status bar component uses process.stdout.columns (or equivalent) for its width calculation, but the attached-session view has a narrower content area. The bar renders at full terminal width → overflows the content area → truncated.

Workaround

Make the terminal wider (more columns) so the content area after the offset is still wide enough for the full status bar. Or detach from the managed session to see the full bar.

Fix needed

The status bar should query the available content width (terminal width minus any offsets) rather than the raw terminal width.

voidfreud · 3 months ago

Standalone sessions display the status bar correctly at the same width. The offset introduced by the managed session is enough to trigger truncation even at maximum terminal width. Thanks!

giruuuuj · 3 months ago

@voidfreud Thanks for testing — you're right, widening the terminal doesn't help. The truncation happens even at maximum terminal width, which means it's not a simple width-calculation bug.

Revisiting the root cause: the managed session renders the status line at full terminal width into a buffer, then the attached-session layout applies a horizontal offset that clips the rendered output. The bar itself is rendered correctly, but it's drawn starting from column 0 while the visible content area starts at column N (N = offset for "attached" indicator). The right side gets clipped because the bar's right edge exceeds the visible area's right edge.

The real fix: the status line renderer needs to be aware of the managed-session viewport offset and render within the visible content area, not the raw terminal dimensions. Workarounds won't help here — this needs a code fix in the TUI layout engine.

bogini collaborator · 3 months ago

Addressed by a merged fix. Please reopen with a fresh repro if you still see this on a current version.

voidfreud · 3 months ago

It's been fixed, thank you!

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.