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
TUI does not fully repaint after Ctrl+Z + fg when terminal is resized #16327
When OpenCode TUI is suspended with Ctrl+Z, the terminal is resized, and then resumed with fg, the UI may return in a partially stale state (misaligned characters / incomplete redraw).
Plugins
No response
OpenCode version
v1.2.20 (reproduced on current dev before fix)
Steps to reproduce
Launch opencode in terminal (TUI mode).
Press Ctrl+Z to suspend the process.
Resize the terminal window while in shell.
Run fg to resume opencode.
Observe the restored screen.
Screenshot and/or share link
No response
Operating System
macOS
Terminal
Reproduced in local terminal session (reporter environment)
Expected behavior
After fg, TUI should fully repaint using current terminal dimensions.
Actual behavior
After fg, parts of the old frame can remain and rendering is not fully refreshed.
changed the title [-]Ctrl-Z && fg does not update renderer when terminal size changed[/-][+]TUI does not fully repaint after Ctrl+Z + fg when terminal is resized[/+]on Mar 6, 2026
Thank you for updating the issue! It now meets our contributing guidelines — the description, reproduction steps, and system info all look good. We appreciate you taking the time to fill things in properly.
Activity
github-actions commentedon Mar 6, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
fgbehaviorIf you believe this was flagged incorrectly, please let a maintainer know.
[-]Ctrl-Z && fg does not update renderer when terminal size changed[/-][+]TUI does not fully repaint after Ctrl+Z + fg when terminal is resized[/+]github-actions commentedon Mar 6, 2026
Thank you for updating the issue! It now meets our contributing guidelines — the description, reproduction steps, and system info all look good. We appreciate you taking the time to fill things in properly.
N-R-K commentedon Apr 17, 2026
Ran into this on linux as well. Using
v1.4.0. Very annoying bug, would appreciate if a fix is merged soon.