[BUG] "Context left until auto-compact" text displayed vertically causing UI layout issue
Resolved 💬 3 comments Opened Jan 31, 2026 by 00OO666 Closed Feb 4, 2026
[BUG] "Context left until auto-compact" text displayed vertically in TUI
Description
The "Context left until auto-compact: X%" text in Claude Code's TUI is being displayed vertically (one character per line) on the right side of the terminal, causing a severe UI layout issue.
Environment
- Claude Code version: 2.1.27
- OS: Windows (MSYS_NT-10.0-26220 3.6.5-22c95533.x86_64)
- Terminal: Git Bash
- Terminal width: 80 columns
Steps to Reproduce
- Launch Claude Code 2.1.27
- Use Claude Code until context usage reaches a certain level
- Observe the right side of the terminal
Expected Behavior
The "Context left until auto-compact: X%" message should be displayed horizontally, either:
- In the status bar (horizontally)
- As a popup notification
- Or in any other reasonable horizontal format
Actual Behavior
The text is displayed vertically on the right side of the terminal, with each character on a separate line:
C
o
n
t
e
x
t
l
e
f
t
u
n
t
i
l
a
u
t
o
-
c
o
m
p
a
c
t
:
1
%
Screenshot
User reported seeing this issue in their Claude Code session. The vertical text appears on the right side of the terminal, making the UI look broken.
Impact
- Severely affects UI aesthetics
- Takes up valuable screen space
- Reduces usability and user experience
- Makes the interface look broken
Possible Cause
This appears to be a TUI layout bug where:
- The text container width is incorrectly set to 1 character
- Or the flexbox/grid layout is miscalculated
- Or the terminal width detection is incorrect
Additional Context
- The issue occurs regardless of custom statusline configuration
- The top status bar displays correctly (horizontally)
- Only the right-side "Context left" text is affected
- This appears to be a new feature in recent Claude Code versions
Related Issues
- #15005 - Context low warning calculation issues
- #18080 - Feature request for compact count tracking
Suggested Fix
- Short-term: Move the "Context left" information to the status bar (horizontal display)
- Medium-term: Fix the TUI layout to ensure proper text container width
- Long-term: Add responsive layout that adapts to terminal width
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗