Description
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.
Related PR
Description
When OpenCode TUI is suspended with
Ctrl+Z, the terminal is resized, and then resumed withfg, the UI may return in a partially stale state (misaligned characters / incomplete redraw).Plugins
No response
OpenCode version
v1.2.20 (reproduced on current
devbefore fix)Steps to reproduce
opencodein terminal (TUI mode).Ctrl+Zto suspend the process.fgto resumeopencode.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.Related PR