[PR #4067] fix: TUI layout breaking at narrow terminal widths #10859

Closed
opened 2026-02-16 18:15:36 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4067

State: closed
Merged: No


Summary

Fixes text disappearing and layout breaking when terminal width drops below 50 characters.

Changes

  • Auto-hide sidebar when terminal width < 50 chars
  • Truncate header title and hide context info on narrow terminals
  • Make dialogs, logo, and bottom bar responsive to terminal width
  • Ensure minimum content width of 20 chars to prevent negative width bugs
  • Remove else statement to follow style guide

Test Plan

  • Tested at terminal width < 35 chars (minimal layout)
  • Tested at terminal width 35-50 chars (compact layout)
  • Tested at terminal width 50-60 chars (standard layout)
  • Tested at terminal width > 60 chars (full layout)
  • Verified sidebar auto-hides on narrow terminals
  • Verified header truncates properly
  • Verified no text overflow or disappearing content

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4067 **State:** closed **Merged:** No --- ## Summary Fixes text disappearing and layout breaking when terminal width drops below 50 characters. ## Changes - Auto-hide sidebar when terminal width < 50 chars - Truncate header title and hide context info on narrow terminals - Make dialogs, logo, and bottom bar responsive to terminal width - Ensure minimum content width of 20 chars to prevent negative width bugs - Remove `else` statement to follow style guide ## Test Plan - [ ] Tested at terminal width < 35 chars (minimal layout) - [ ] Tested at terminal width 35-50 chars (compact layout) - [ ] Tested at terminal width 50-60 chars (standard layout) - [ ] Tested at terminal width > 60 chars (full layout) - [ ] Verified sidebar auto-hides on narrow terminals - [ ] Verified header truncates properly - [ ] Verified no text overflow or disappearing content 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-16 18:15:36 -05:00
yindo closed this issue 2026-02-16 18:15:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10859