TUI crashes when resizing terminal window (Windows / CMD)
Description
Describe the bug
When running OpenCode in TUI mode on Windows, the application crashes immediately when the terminal window is resized (by dragging the window edge). This happens consistently and makes the TUI unusable whenever the terminal size changes.
To Reproduce
Steps to reproduce the behavior:
-
Open Command Prompt (CMD) on Windows,run opencode
-
Start OpenCode TUI
-
While the TUI is running, resize the CMD window (drag to change width or height),The application crashes immediately.
Expected behavior
The TUI should handle terminal resize events gracefully and continue running, with the layout reflowing or redrawing correctly.
Environment
-
OS: Windows
-
Terminal: Command Prompt (CMD)
-
OpenCode version: 1.1.13
-
Installation method: npm
Plugins
oh-my-opencode
OpenCode version
1.1.13
Steps to reproduce
-
Open Command Prompt (CMD) on Windows,run opencode
-
Start OpenCode TUI
-
While the TUI is running, resize the CMD window (drag to change width or height),The application crashes immediately.
Screenshot and/or share link
No response
Operating System
Windows 10
Terminal
Windows terminal(CMD)