Edit Mode is not exiting properly #2414

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

Originally created by @Cluster444 on GitHub (Oct 31, 2025).

Originally assigned to: @kommander on GitHub.

Description

When I go to edit mode with E and then come back the terminal is not redrawing the screen properly. Probably needs some kind of full refresh?

OpenCode version

1.0.2

Steps to reproduce

Start a session
Go to Editor
Save and Exit
Profit

Screenshot and/or share link

Image

Operating System

Omarchy 3

Terminal

Ghostty

Originally created by @Cluster444 on GitHub (Oct 31, 2025). Originally assigned to: @kommander on GitHub. ### Description When I go to edit mode with <leader>E and then come back the terminal is not redrawing the screen properly. Probably needs some kind of full refresh? ### OpenCode version 1.0.2 ### Steps to reproduce Start a session Go to Editor Save and Exit Profit ### Screenshot and/or share link <img width="3740" height="2264" alt="Image" src="https://github.com/user-attachments/assets/6467b35e-773a-41ee-93b6-25d3b1dc99a3" /> ### Operating System Omarchy 3 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:35:30 -05:00
yindo closed this issue 2026-02-16 17:35:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2025):

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

  • #3311: Similar issue where switching to editor mode and back causes TUI rendering problems, with UI elements disappearing and not redrawing correctly

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

@github-actions[bot] commented on GitHub (Oct 31, 2025): This issue might be a duplicate of existing issues. Please check: - #3311: Similar issue where switching to editor mode and back causes TUI rendering problems, with UI elements disappearing and not redrawing correctly Feel free to ignore if none of these address your specific case.
Author
Owner

@d3vr commented on GitHub (Oct 31, 2025):

Something that worked for me: resizing the terminal seems to fix the rendering

@d3vr commented on GitHub (Oct 31, 2025): Something that worked for me: resizing the terminal seems to fix the rendering
Author
Owner

@veracioux commented on GitHub (Oct 31, 2025):

@kommander Should be fixed by https://github.com/sst/opencode/pull/3663.

@veracioux commented on GitHub (Oct 31, 2025): @kommander Should be fixed by https://github.com/sst/opencode/pull/3663.
Author
Owner

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

I still have the same issue with this in 1.0.7. Here's a screenshot of switching right from the start screen.

Before:

Image

After:

Image
@Cluster444 commented on GitHub (Nov 1, 2025): I still have the same issue with this in 1.0.7. Here's a screenshot of switching right from the start screen. Before: <img width="1492" height="884" alt="Image" src="https://github.com/user-attachments/assets/4b2e3ec2-16eb-4b82-9f5a-8d7681bb26e5" /> After: <img width="1686" height="1084" alt="Image" src="https://github.com/user-attachments/assets/c7ed5c30-5cef-4a57-af80-7e6911de2ed3" />
Author
Owner

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

Also, when I quit after this, the screen does not clear properly back to my terminal, I have to reset to get my terminal back properly, which is not the case when normally exiting.

@Cluster444 commented on GitHub (Nov 1, 2025): Also, when I quit after this, the screen does not clear properly back to my terminal, I have to `reset` to get my terminal back properly, which is not the case when normally exiting.
Author
Owner

@Cluster444 commented on GitHub (Nov 7, 2025):

This works now

@Cluster444 commented on GitHub (Nov 7, 2025): This works now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2414