In version 1.1.23, the issue of the mouse wheel triggering abnormal ASCII codes after exiting reappeared. #6492

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

Originally created by @HWOUq1xd7c on GitHub (Jan 16, 2026).

Originally assigned to: @kommander on GitHub.

Description

Installation tools: npm & bun(both shown same bug)

Symptom: After exiting the terminal using Ctrl + C, mouse movement or scrolling will trigger garbled characters.

Note: This issue does not exist after installing version 1.1.21 using scoop.

Note: I changed the display format of PowerShell's working directory(For example, the double ">" symbol, and colored work paths.), but testing showed that this change was unrelated to the problem.

Plugins

    "opencode-devcontainers",         "@tarquinen/opencode-dcp",         "opencode-websearch-cited",         "opencode-pty",         "opencode-supermemory",         "oh-my-opencode"

OpenCode version

1.1.23

Steps to reproduce

  1. Using Windows 11 25H2
  2. install OpenCode 1.1.23 via Windows Terminal using bun/npm
  3. launch OpenCode
  4. immediately exit using Ctrl+C
  5. The problem can then be reproduced by manipulating the mouse.

Screenshot and/or share link

Image

Operating System

Windows 11 25H2

Terminal

Windows Terminal + PowerShell 7.5.4

Originally created by @HWOUq1xd7c on GitHub (Jan 16, 2026). Originally assigned to: @kommander on GitHub. ### Description Installation tools: npm & bun(both shown same bug) Symptom: After exiting the terminal using Ctrl + C, mouse movement or scrolling will trigger garbled characters. Note: This issue does not exist after installing version 1.1.21 using scoop. Note: I changed the display format of PowerShell's working directory(For example, the double ">" symbol, and colored work paths.), but testing showed that this change was unrelated to the problem. ### Plugins "opencode-devcontainers", "@tarquinen/opencode-dcp", "opencode-websearch-cited", "opencode-pty", "opencode-supermemory", "oh-my-opencode" ### OpenCode version 1.1.23 ### Steps to reproduce 1. Using Windows 11 25H2 2. install OpenCode 1.1.23 via Windows Terminal using `bun/npm` 3. launch OpenCode 4. immediately exit using Ctrl+C 5. The problem can then be reproduced by manipulating the mouse. ### Screenshot and/or share link <img width="1968" height="448" alt="Image" src="https://github.com/user-attachments/assets/49e488b5-96eb-4f37-94bf-ccc04eef60e2" /> ### Operating System Windows 11 25H2 ### Terminal Windows Terminal + PowerShell 7.5.4
yindo added the windowsopentuibug labels 2026-02-16 18:04:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2026):

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

  • #6912: Ctrl+C does not disable mouse tracking, causing raw escape sequences to flood terminal (Windows)
  • #7062: Pressing Ctrl+C in input field outputs ANSI escape sequences/garbled text
  • #8614: opencode mcp add then move my mouse, the input mixed
  • #8715: Opencode Windows Character Spamming

These all describe similar symptoms of garbled ANSI escape codes appearing after exit or mouse movement on Windows terminals. The root cause appears to be improper cleanup of mouse tracking escape sequences when exiting or during operation.

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

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues. Please check: - #6912: Ctrl+C does not disable mouse tracking, causing raw escape sequences to flood terminal (Windows) - #7062: Pressing Ctrl+C in input field outputs ANSI escape sequences/garbled text - #8614: opencode mcp add then move my mouse, the input mixed - #8715: Opencode Windows Character Spamming These all describe similar symptoms of garbled ANSI escape codes appearing after exit or mouse movement on Windows terminals. The root cause appears to be improper cleanup of mouse tracking escape sequences when exiting or during operation. 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#6492