Skip to content

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

Closed

Description

@hzxcaq

Description

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

Plugins

No response

OpenCode version

1.1.28

Steps to reproduce

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

Screenshot and/or share link

PixPin_2026-01-21_15-54-47.mp4

Operating System

windows 11

Terminal

PowerShell 7.5.4

Activity

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

    @github-actions
    Contributor

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

    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.

  3. ashu1800 commented on Jan 21, 2026

    @ashu1800

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

  4. cw1427 commented on Jan 21, 2026

    @cw1427

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

  5. hzxcaq commented on Jan 21, 2026

    @hzxcaq
    Author

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

  6. ccdalao commented on Jan 26, 2026

    @ccdalao

    我也会遇到相同的问题

  7. learningpro commented on Jan 28, 2026

    @learningpro

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

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

  8. createskyblue commented on Feb 2, 2026

    @createskyblue

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

  9. fanninghau commented on Feb 4, 2026

    @fanninghau

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

  10. gh503 commented on Feb 5, 2026

    @gh503

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

  11. piaoxue1949 commented on Mar 1, 2026

    @piaoxue1949

    我也常常遇到这个问题

  12. aitingtingya commented on Mar 16, 2026

    @aitingtingya

    不光拖动鼠标,我尝试双击左键也会这样

  13. justinzzc commented on Mar 31, 2026

    @justinzzc

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

    请问是什么软件导致的,我这边也会出现闪退

  14. chrisnch commented on Apr 10, 2026

    @chrisnch

    @aitingtingya @justinzzc 我也遇到双击退出的问题了。我发现是双击或拖动的时候触发了Cherry Studio的划词助手输入ctrl+c。关闭划词助手或者把WindowsTerminal.exe加入黑名单。

  15. Keepruib commented on Apr 29, 2026

    @Keepruib

    有人解决了嘛,我现在也频繁乱码

  16. 2015chunhui commented on May 11, 2026

    @2015chunhui

    I alse have this items ; it can't to work , my system is win10

  17. LongUncle commented on May 17, 2026

    @LongUncle

    我也遇到这样的问题,windows10系统,终端窗口只要有过对话之后,改变窗口大小就会触发退出,不知道其它系统环境是否这样。

  18. younguis commented on Aug 22, 2026

    @younguis

    太难用了 我也一样

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