Ghostty tab close leaves OpenCode UI in corrupted state when pressing Tab #9467

Open
opened 2026-02-16 18:12:31 -05:00 by yindo · 0 comments
Owner

Originally created by @brandon-aguero on GitHub (Feb 16, 2026).

Originally assigned to: @kommander on GitHub.

When running OpenCode in Ghostty on Zorin OS 18 (Ubuntu 24.04 base), closing the terminal tab and then pressing Tab in a new tab causes OpenCode's UI to render corrupted glyphs/garbled text at the top of the screen.

Expected:

  • Tab should switch agents (Plan/Build) normally.

Actual:

  • UI shows corrupted characters and the screen state becomes visually broken.

Plugins

No response

OpenCode version

1.2.5

Steps to reproduce

  1. Open opencode in Ghostty.
  2. Open a new tab in Ghostty.
  3. Close the terminal tab (using keyboard or mouse).
  4. Press Tab (agent switch between Plan and Build).
  5. Observe corrupted UI rendering.

Screenshot and/or share link

Image

Operating System

Zorin OS 18 (Ubuntu 24.04 base)

Terminal

Ghostty

Originally created by @brandon-aguero on GitHub (Feb 16, 2026). Originally assigned to: @kommander on GitHub. When running OpenCode in Ghostty on Zorin OS 18 (Ubuntu 24.04 base), closing the terminal tab and then pressing `Tab` in a new tab causes OpenCode's UI to render corrupted glyphs/garbled text at the top of the screen. **Expected:** - `Tab` should switch agents (Plan/Build) normally. **Actual:** - UI shows corrupted characters and the screen state becomes visually broken. ### Plugins _No response_ ### OpenCode version 1.2.5 ### Steps to reproduce 1. Open `opencode` in Ghostty. 2. Open a new tab in Ghostty. 3. Close the terminal tab (using keyboard or mouse). 4. Press `Tab` (agent switch between Plan and Build). 5. Observe corrupted UI rendering. ### Screenshot and/or share link <img width="989" height="532" alt="Image" src="https://github.com/user-attachments/assets/a72cd750-a68e-418e-ac27-43e20662c714" /> ### Operating System Zorin OS 18 (Ubuntu 24.04 base) ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 18:12:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9467