You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] v2 TUI prompt and side panels become invisible after Ghostty resize or screen saver #51945
In the OpenCode v2 TUI running in Ghostty on macOS, resizing the terminal can leave the interface only partially drawn. The assistant's streaming output remains visible, but the prompt input and the side panels (chats and session information) disappear visually. Their interactive areas are still present and clickable, so this appears to be a rendering/redraw problem rather than the panels being removed from the layout.
The same failure can occur when the machine activates the screen saver: on return, OpenCode is still running, but the TUI is unusable in this state. It happens with every theme I have tried.
Steps to reproduce
Run the OpenCode v2 TUI in Ghostty and open a session.
Resize the terminal while the session is active, especially while the assistant is streaming.
Observe that the streaming output remains visible while the prompt input and side panels disappear.
Alternatively, leave the session running, allow the macOS screen saver to activate, then return to Ghostty.
Expected behavior
The TUI redraws the prompt input and both side panels after a terminal size or display/focus change, and remains usable.
Actual behavior
Only the streaming area is visible. The prompt input and side panels are invisible, although their areas remain clickable. Changing themes does not prevent the problem.
Thanks for the clear report and screenshot! To reproduce this we need a few more details:
The exact version: the output of opencode --version. If it isn't the latest v2 (currently 2.2.0), could you upgrade and check whether it still happens?
Your Ghostty version, and whether you use a custom shader (e.g. custom-shader) or a non-default renderer setting.
Once the panels are invisible, does anything bring them back, such as resizing again, pressing a key, or leaving and reopening the session? Or do you have to restart OpenCode?
Do any plugins load in the TUI?
You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
We haven't heard back about the details we asked for: the output of opencode --version, your Ghostty version and any custom shaders, whether it still happens on the latest v2, and whether anything brings the prompt and side panels back. Without them we can't reproduce the redraw problem after a resize or the screen saver, so I'm closing this issue for now.
If it still happens, please reply here with those details and we can reopen it. Thanks for the report!
I have seen this issue happen a few times, I am on OpenCode v2.0.18 and Ghostty 1.4.0 and Herdr 0.9.5 with no custom shaders. In my case I don't think it was a terminal resize that triggered it, simply navigating into a subagent view once in a while seems to trigger it. My screen looks very similar to the above with black bars on the side panel and prompt/status bar area. Resizing ghostty did not cause a redraw of these areas. The only way I have found to fix it is to quit opencode and resume the session in a new TUI instance which is not great to need to do for long-running sessions as it seems to kill active tool calls/subagents.
Activity
github-actions commentedon Sep 28, 2026
This issue might be a duplicate of existing issues. Please check:
opencodejr commentedon Oct 28, 2026
Thanks for the clear report and screenshot! To reproduce this we need a few more details:
opencode --version. If it isn't the latest v2 (currently 2.2.0), could you upgrade and check whether it still happens?custom-shader) or a non-default renderer setting.You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
Related issues, ordered by likelihood:
JavelDev commentedon Oct 28, 2026
opencodejr commentedon Oct 31, 2026
We haven't heard back about the details we asked for: the output of
opencode --version, your Ghostty version and any custom shaders, whether it still happens on the latest v2, and whether anything brings the prompt and side panels back. Without them we can't reproduce the redraw problem after a resize or the screen saver, so I'm closing this issue for now.If it still happens, please reply here with those details and we can reopen it. Thanks for the report!
fadookie commentedon Nov 4, 2026
I have seen this issue happen a few times, I am on OpenCode v2.0.18 and Ghostty 1.4.0 and Herdr 0.9.5 with no custom shaders. In my case I don't think it was a terminal resize that triggered it, simply navigating into a subagent view once in a while seems to trigger it. My screen looks very similar to the above with black bars on the side panel and prompt/status bar area. Resizing ghostty did not cause a redraw of these areas. The only way I have found to fix it is to quit opencode and resume the session in a new TUI instance which is not great to need to do for long-running sessions as it seems to kill active tool calls/subagents.