After closing the OpenCode CLI, scrolling the mouse wheel and moving the mouse in the powershell will cause garbled characters. #8295

Open
opened 2026-02-16 18:09:37 -05:00 by yindo · 1 comment
Owner

Originally created by @FYZAFH on GitHub (Feb 2, 2026).

Originally assigned to: @kommander on GitHub.

Description

Image

Plugins

No Plugin

OpenCode version

1.1.48

Steps to reproduce

  1. Install opencode CLI using npm
  2. Open opencode CLI in PowerShell, and use the opencode command
  3. Ctrl-C to exit, then move the mouse in the command line, or scroll the wheel

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Powershell

Originally created by @FYZAFH on GitHub (Feb 2, 2026). Originally assigned to: @kommander on GitHub. ### Description <img width="1113" height="645" alt="Image" src="https://github.com/user-attachments/assets/c46c7091-eefc-439a-a230-a113a10225e7" /> ### Plugins No Plugin ### OpenCode version 1.1.48 ### Steps to reproduce 1. Install opencode CLI using npm 2. Open opencode CLI in PowerShell, and use the `opencode` command 3. Ctrl-C to exit, then move the mouse in the command line, or scroll the wheel ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Powershell
yindo added the windowsopentuibug labels 2026-02-16 18:09:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 2, 2026):

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

  • #10951: The terminal displays garbled characters (after exiting with /exit command)
  • #8908: In version 1.1.23, the issue of the mouse wheel triggering abnormal ASCII codes after exiting reappeared (very similar symptoms with mouse wheel in PowerShell after Ctrl+C exit)
  • #10414: OpenCode crashes during use on Windows (garbled console output)
  • #7062: Pressing Ctrl+C in input field outputs ANSI escape sequences/garbled text

The issue appears to be related to terminal state cleanup on Windows when exiting OpenCode, particularly with PowerShell and mouse/scroll input interactions.

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

@github-actions[bot] commented on GitHub (Feb 2, 2026): This issue might be a duplicate of existing issues. Please check: - #10951: The terminal displays garbled characters (after exiting with /exit command) - #8908: In version 1.1.23, the issue of the mouse wheel triggering abnormal ASCII codes after exiting reappeared (very similar symptoms with mouse wheel in PowerShell after Ctrl+C exit) - #10414: OpenCode crashes during use on Windows (garbled console output) - #7062: Pressing Ctrl+C in input field outputs ANSI escape sequences/garbled text The issue appears to be related to terminal state cleanup on Windows when exiting OpenCode, particularly with PowerShell and mouse/scroll input interactions. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8295