OpenTUI: Missing main view text when resizing #2446

Closed
opened 2026-02-16 17:35:41 -05:00 by yindo · 8 comments
Owner

Originally created by @Damond5 on GitHub (Nov 1, 2025).

Originally assigned to: @kommander on GitHub.

Description

Opening a new window in i3 makes the opencode window resize. After resize the text in the main view is missing.

OpenCode version

v1.0.7

Steps to reproduce

  1. Open opencode to fill the whole screen
  2. Open a 2nd window and split the screen in 2 windows (opencode + 2nd window)
  3. Expect opencode to resize and still show everything

Screenshot and/or share link

Image

Operating System

Arch Linux + i3

Terminal

Alacritty

Originally created by @Damond5 on GitHub (Nov 1, 2025). Originally assigned to: @kommander on GitHub. ### Description Opening a new window in i3 makes the opencode window resize. After resize the text in the main view is missing. ### OpenCode version v1.0.7 ### Steps to reproduce 1. Open opencode to fill the whole screen 2. Open a 2nd window and split the screen in 2 windows (opencode + 2nd window) 3. Expect opencode to resize and still show everything ### Screenshot and/or share link <img width="1720" height="1440" alt="Image" src="https://github.com/user-attachments/assets/c840986f-c2ec-4503-939a-c30259a6e2c3" /> ### Operating System Arch Linux + i3 ### Terminal Alacritty
yindo added the opentuibug labels 2026-02-16 17:35:41 -05:00
yindo closed this issue 2026-02-16 17:35:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3328: Same issue where TUI doesn't resize properly when window resizes, showing broken display
  • #3676: Window resizing doesn't work on Windows terminals with similar symptoms
  • #3394: OpenTUI resize issue where UI elements flow into each other after resizing

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 1, 2025): This issue might be a duplicate of existing issues. Please check: - #3328: Same issue where TUI doesn't resize properly when window resizes, showing broken display - #3676: Window resizing doesn't work on Windows terminals with similar symptoms - #3394: OpenTUI resize issue where UI elements flow into each other after resizing Feel free to ignore if none of these address your specific case.
Author
Owner

@veracioux commented on GitHub (Nov 1, 2025):

After this happens, are you able to get the main view to display correctly by resizing the terminal window incrementally?

@veracioux commented on GitHub (Nov 1, 2025): After this happens, are you able to get the main view to display correctly by resizing the terminal window incrementally?
Author
Owner

@Damond5 commented on GitHub (Nov 1, 2025):

After this happens, are you able to get the main view to display correctly by resizing the terminal window incrementally?

No, I tried resizing both horizontally and vertically, smaller and bigger. The main view stays empty.

Also tried scrolling up (with mouse wheel), to see if the text just got pushed, but nothing happens when I scroll.

@Damond5 commented on GitHub (Nov 1, 2025): > After this happens, are you able to get the main view to display correctly by resizing the terminal window incrementally? No, I tried resizing both horizontally and vertically, smaller and bigger. The main view stays empty. Also tried scrolling up (with mouse wheel), to see if the text just got pushed, but nothing happens when I scroll.
Author
Owner

@Damond5 commented on GitHub (Nov 1, 2025):

Its like the main view has been cleared.

When I enter a new prompt, it starts populating again with blocks from the new prompt (the old blocks are still gone).

@Damond5 commented on GitHub (Nov 1, 2025): Its like the main view has been cleared. When I enter a new prompt, it starts populating again with blocks from the new prompt (the old blocks are still gone).
Author
Owner

@arsham commented on GitHub (Nov 1, 2025):

What I've noticed that if you keep the conversation going for a bit, then you scroll up, sometimes you can see the messages correctly. The resize trick works after using the /editor command only.

@arsham commented on GitHub (Nov 1, 2025): What I've noticed that if you keep the conversation going for a bit, then you scroll up, sometimes you can see the messages correctly. The resize trick works after using the `/editor` command only.
Author
Owner

@kommander commented on GitHub (Nov 1, 2025):

If the content reappears after aggressive scrolling it is a known issue in the scrollbox clipping. I'll fix that in the opentui lib and add an option to turn clipping off in opencode implementation should it not get better.

@kommander commented on GitHub (Nov 1, 2025): If the content reappears after aggressive scrolling it is a known issue in the scrollbox clipping. I'll fix that in the opentui lib and add an option to turn clipping off in opencode implementation should it not get better.
Author
Owner

@Damond5 commented on GitHub (Nov 1, 2025):

If the content reappears after aggressive scrolling it is a known issue in the scrollbox clipping. I'll fix that in the opentui lib and add an option to turn clipping off in opencode implementation should it not get better.

I think you've got it!

Had to spam scroll for 30+ seconds with my mouse, but eventually got to the old blocks.

@Damond5 commented on GitHub (Nov 1, 2025): > If the content reappears after aggressive scrolling it is a known issue in the scrollbox clipping. I'll fix that in the opentui lib and add an option to turn clipping off in opencode implementation should it not get better. I think you've got it! Had to spam scroll for 30+ seconds with my mouse, but eventually got to the old blocks.
Author
Owner

@chknlittle commented on GitHub (Nov 4, 2025):

https://github.com/sst/opencode/pull/3834

fixes it for me

@chknlittle commented on GitHub (Nov 4, 2025): https://github.com/sst/opencode/pull/3834 fixes it for me
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2446