opencode cli鼠标拖动终端窗口,就会触发退出+乱码 #7049

Closed
opened 2026-02-16 18:06:00 -05:00 by yindo · 9 comments
Owner

Originally created by @hzxcaq on GitHub (Jan 21, 2026).

Originally assigned to: @kommander on GitHub.

Description

opencode cli鼠标拖动终端窗口,就会触发退出+乱码

Plugins

No response

OpenCode version

1.1.28

Steps to reproduce

1.打开opencode
2.鼠标选中并拖动

Screenshot and/or share link

https://github.com/user-attachments/assets/2ca65210-f9fb-498d-8eb8-c2340d79ad97

Operating System

windows 11

Terminal

PowerShell 7.5.4

Originally created by @hzxcaq on GitHub (Jan 21, 2026). Originally assigned to: @kommander on GitHub. ### Description opencode cli鼠标拖动终端窗口,就会触发退出+乱码 ### Plugins _No response_ ### OpenCode version 1.1.28 ### Steps to reproduce 1.打开opencode 2.鼠标选中并拖动 ### Screenshot and/or share link https://github.com/user-attachments/assets/2ca65210-f9fb-498d-8eb8-c2340d79ad97 ### Operating System windows 11 ### Terminal PowerShell 7.5.4
yindo added the windowsopentuibug labels 2026-02-16 18:06:00 -05:00
yindo closed this issue 2026-02-16 18:06:00 -05:00
Author
Owner

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

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

  • #8614: opencode mcp add then move my mouse , the input mixed.
  • #8908: In version 1.1.23, the issue of the mouse wheel triggering abnormal ASCII codes after exiting reappeared.
  • #8715: Opencode Windows Character Spamming

All these issues describe similar symptoms on Windows: mouse movement causing garbled characters/mixed input after exiting or during use on PowerShell/Windows Terminal.

Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Jan 21, 2026): This issue might be a duplicate of existing issues. Please check: - #8614: opencode mcp add then move my mouse , the input mixed. - #8908: In version 1.1.23, the issue of the mouse wheel triggering abnormal ASCII codes after exiting reappeared. - #8715: Opencode Windows Character Spamming All these issues describe similar symptoms on Windows: mouse movement causing garbled characters/mixed input after exiting or during use on PowerShell/Windows Terminal. Feel free to ignore if your specific case differs from these.
Author
Owner

@ashu1800 commented on GitHub (Jan 21, 2026):

看来不止我一个人遇到了这个问题,等待大佬解决吧

@ashu1800 commented on GitHub (Jan 21, 2026): 看来不止我一个人遇到了这个问题,等待大佬解决吧
Author
Owner

@cw1427 commented on GitHub (Jan 21, 2026):

一样的问题,试着chcp 65001 $OutputEncoding = [System.Text.Encoding]::UTF8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 各种AI建议都不行。
换terminal hyper tabby等都会出现

@cw1427 commented on GitHub (Jan 21, 2026): 一样的问题,试着chcp 65001 $OutputEncoding = [System.Text.Encoding]::UTF8 [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 各种AI建议都不行。 换terminal hyper tabby等都会出现
Author
Owner

@hzxcaq commented on GitHub (Jan 21, 2026):

不好意思,opencode cli只有乱码的问题哈,我的问题触发是因为另一个软件会导致鼠标拖动认为在终端内触发了ctrl C的动作;
issue重复,我先关闭

@hzxcaq commented on GitHub (Jan 21, 2026): 不好意思,opencode cli只有乱码的问题哈,我的问题触发是因为另一个软件会导致鼠标拖动认为在终端内触发了ctrl C的动作; issue重复,我先关闭
Author
Owner

@ccdalao commented on GitHub (Jan 26, 2026):

我也会遇到相同的问题

@ccdalao commented on GitHub (Jan 26, 2026): 我也会遇到相同的问题
Author
Owner

@learningpro commented on GitHub (Jan 28, 2026):

一样的问题,试着chcp 65001 $OutputEncoding = [System.Text.Encoding]::UTF8 [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 各种AI建议都不行。 换terminal hyper tabby等都会出现

是的,换了几个终端工具都不行

@learningpro commented on GitHub (Jan 28, 2026): > 一样的问题,试着chcp 65001 $OutputEncoding = [System.Text.Encoding]::UTF8 [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 各种AI建议都不行。 换terminal hyper tabby等都会出现 是的,换了几个终端工具都不行
Author
Owner

@createskyblue commented on GitHub (Feb 2, 2026):

有这个奇怪的问题,问题没有解决

@createskyblue commented on GitHub (Feb 2, 2026): 有这个奇怪的问题,问题没有解决
Author
Owner

@FanningHau commented on GitHub (Feb 4, 2026):

这个问题已经很久了吧,起码两三个月了

@FanningHau commented on GitHub (Feb 4, 2026): 这个问题已经很久了吧,起码两三个月了
Author
Owner

@gh503 commented on GitHub (Feb 5, 2026):

问题频发,建议优先解决,很影响体验

@gh503 commented on GitHub (Feb 5, 2026): 问题频发,建议优先解决,很影响体验
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7049