Switching branches causes visual artifacts in TUI #3679

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

Originally created by @ariane-emory on GitHub (Dec 19, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Switching branches mid-session causes visual defects to appear in the TUI.

Since opencode sessions can often transit between many different branches, this frequently causes defects to appear (for example, by the time my "merge these 24 branches" custom slash command is done, there's quite a mess leftover).

OpenCode version

HEAD of dev at time of posting this Issue.

Steps to reproduce

  1. Start opencode.
  2. Use a shell command to switch branches(either in opencode's shell mode, a separate terminal window, or ask the model to do it, doesn't matter).
  3. Observe the appearance of visual defects.

Screenshot and/or share link

Before switching branches

Image

After switching branches

Image

Operating System

MacOS Sequoia latest

Terminal

iTerm2

Originally created by @ariane-emory on GitHub (Dec 19, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Switching branches mid-session causes visual defects to appear in the TUI. Since opencode sessions can often transit between many different branches, this frequently causes defects to appear (for example, by the time my "merge these 24 branches" custom slash command is done, there's quite a mess leftover). ### OpenCode version HEAD of dev at time of posting this Issue. ### Steps to reproduce 1. Start opencode. 2. Use a shell command to switch branches(either in opencode's shell mode, a separate terminal window, or ask the model to do it, doesn't matter). 3. Observe the appearance of visual defects. ### Screenshot and/or share link #### Before switching branches <img width="1005" height="865" alt="Image" src="https://github.com/user-attachments/assets/a8a01525-247c-4d89-931a-5ff38e46aab3" /> #### After switching branches <img width="998" height="863" alt="Image" src="https://github.com/user-attachments/assets/2fcfadef-4a5c-4979-ad62-746eb8a03805" /> ### Operating System MacOS Sequoia latest ### Terminal iTerm2
yindo added the opentuibug labels 2026-02-16 17:41:05 -05:00
yindo closed this issue 2026-02-16 17:41:05 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2025):

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

  • #1864: tui rendering artifacting
  • #5283: Graphical glitches

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

@github-actions[bot] commented on GitHub (Dec 19, 2025): This issue might be a duplicate of existing issues. Please check: - #1864: tui rendering artifacting - #5283: Graphical glitches Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 19, 2025):

wtf

@rekram1-node commented on GitHub (Dec 19, 2025): wtf
Author
Owner

@rekram1-node commented on GitHub (Dec 19, 2025):

Image

I think this is your setup or a plugin?

Cannot replicate

@rekram1-node commented on GitHub (Dec 19, 2025): <img width="2106" height="654" alt="Image" src="https://github.com/user-attachments/assets/d3550a77-b3af-4904-9538-0c4f2b3fa9ca" /> I think this is your setup or a plugin? Cannot replicate
Author
Owner

@ariane-emory commented on GitHub (Dec 19, 2025):

@rekram1-node Hmmm... I'll try nuking all the various bun caches and see if that makes any differences, maybe something's gotten mixed up somewhere.

@ariane-emory commented on GitHub (Dec 19, 2025): @rekram1-node Hmmm... I'll try nuking all the various bun caches and see if that makes any differences, maybe something's gotten mixed up somewhere.
Author
Owner

@rekram1-node commented on GitHub (Dec 22, 2025):

havent' seen other reports of this, going to close for now

@rekram1-node commented on GitHub (Dec 22, 2025): havent' seen other reports of this, going to close for now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3679