Skip to content

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

Closed

Description

@HWOUq1xd7c

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

Activity

  1. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

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

    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.

  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 16, 2026
  3. github-actions commented on Mar 26, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions