Skip to content

[Bug] v2 TUI prompt and side panels become invisible after Ghostty resize or screen saver #51945

Closed as not planned

Description

@JavelDev

Description

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

  1. Run the OpenCode v2 TUI in Ghostty and open a session.
  2. Resize the terminal while the session is active, especially while the assistant is streaming.
  3. Observe that the streaming output remains visible while the prompt input and side panels disappear.
  4. Alternatively, leave the session running, allow the macOS screen saver to activate, then return to Ghostty.
Image

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.

Environment

  • OpenCode: v2 (exact version/build not provided)
  • Terminal: Ghostty
  • OS: macOS

Related reports

A screenshot of the affected UI is available from the reporter.

Activity

  1. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

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

  2. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the clear report and screenshot! To reproduce this we need a few more details:

    1. 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?
    2. Your Ghostty version, and whether you use a custom shader (e.g. custom-shader) or a non-default renderer setting.
    3. 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?
    4. 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.

    Related issues, ordered by likelihood:

  3. JavelDev commented on Oct 28, 2026

    @JavelDev
    Author
  4. opencodejr commented on Oct 31, 2026

    @opencodejr
    Contributor

    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!

  5. fadookie commented on Nov 4, 2026

    @fadookie

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions