Skip to content

TUI crashes when resizing terminal window (Windows / CMD) #7943

Closed as not planned

Description

@CodeNewbie88

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)

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 12, 2026
  2. github-actions commented on Jan 12, 2026

    @github-actions
    Contributor

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

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

  3. kommander commented on Jan 13, 2026

    @kommander
    Contributor

    Does it work vanilla, without OmO?

  4. CodeNewbie88 commented on Jan 14, 2026

    @CodeNewbie88
    Author

    Does it work vanilla, without OmO?在不使用 OmO 的原生环境下,它可以正常工作吗?

    It cannot work properly; this issue already existed before I installed OmO.

  5. missaved commented on Jan 21, 2026

    @missaved

    环境补充:Windows(管理员权限)。
    终端:CMD 和 PowerShell 都会复现。
    行为:TUI 运行中调整窗口大小会立即崩溃。
    版本:1.1.27。

  6. github-actions commented on Mar 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. kommander commented on Mar 28, 2026

    @kommander
    Contributor
  8. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions