opencode icon indicating copy to clipboard operation
opencode copied to clipboard

TUI crashes when resizing terminal window (Windows / CMD)

Open CodeNewbie88 opened this issue 2 days ago • 3 comments

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:

  1. Open Command Prompt (CMD) on Windows,run opencode

  2. Start OpenCode TUI

  3. 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

  1. Open Command Prompt (CMD) on Windows,run opencode

  2. Start OpenCode TUI

  3. 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)

CodeNewbie88 avatar Jan 12 '26 08:01 CodeNewbie88