ctrl+c退到直接导致回到shell出现自动序列化问题且无法设置屏蔽ctrl+c #6649

Closed
opened 2026-02-16 18:04:51 -05:00 by yindo · 2 comments
Owner

Originally created by @wang543851600 on GitHub (Jan 17, 2026).

Originally assigned to: @kommander on GitHub.

Description

误触ctrl+c会退出opencode且出现自动序列化刷屏,如下内容:
C:\Users\250G>^[[<35;43;20m^[[<35;43;21m^[[<35;44;21m^[[<35;44;22m^[[<35;44;21m^[[<35;45;21m^[[<35;46;21m^[[<35;46;20m”
[<35;46;21m^[[<35;47;21m^[[<35;47;22m^[[<35;48;22m^[[<35;49;22m^[[<35;50;22m^[[<35;51;23m^[[<35;52;23m^[[<35;53;23m^[[<
5;54;23m^[[<35;55;24m^[[<35;56;24m^[[<35;58;24m^[[<35;59;24m^[[<35;60;25m^[[<35;61;25m^[[<35;63;25m^[[<35;64;25m^[[<35;
5;26m^[[<35;66;26m^[[<35;67;26m^[[<35;66;26m^[[<35;65;26m^[[<35;65;25m^[[<35;64;25m^[[<35;63;24m^[[<35;62;24m^[[<35;61;
4m^[[<35;60;24m^[[<35;59;24m^[[<35;60;24m^[[<35;60;25m^[[<35;59;25m^[[<35;59;26m^[[<35;59;27m^[[<35;58;27m^[[<35;58;28m
[<35;57;28m^[[<35;56;28m^[[<35;55;29m^[[<35;54;29m^[[<35;53;29m^[[<35;52;29m^[[<35;53;29m^[[<35;54;29m^[[<35;55;29m^[[·
43;56;29m^[[<43;57;29m^[[<43;58;29m^[[<43;59;29m^[[<43;61;29m^[[<43;62;29m^[[<43;63;29m^[[<43;65;29m^[[<43;67;29m^[[<43
69;29m^[[<43;72;29m^[[<43; 74;30m^[[<43;76;30m^[[<43;78;30m^[[<43;79;30m^[[<43;80;30m^[[<43;81;30m^[[<43;82;30m^[[<43;81
30m^[[<43;80;30m^[a^[[<43;79;30m^[[<43;79;29m^[[<43;78;29m^[[<43;77;29m^[[<43;76;29m^[[<43;75;29m^[[<43;74;29m^[[<43;73
29m^[[<43;72;29m^[a^[[<59;71;29m^[[<59;70;29m^[[<59;69;29m^[[<59;68;29m^[[<59;67;29m^[[<59;66;29m^[[<59;65;29m^[[<59;64
29m^[[<59;63;29m′
A[[<59
2:29m
·[[<59;50;28m^[[<59;48;28|

Plugins

没有插件

OpenCode version

好几个版本一直到最新版本1.1.25都是这个问题

Steps to reproduce

任意bash终端打开opencode随便打几个字,然后用鼠标选中一些文字按ctrl+c就会复现,他还退出opencode回到shell命令行自动刷屏序列化且不关闭窗口无法停止

Screenshot and/or share link

Image

Operating System

windows 10专业版

Terminal

Windows Terminal以及cmd和PowerShel都会出现这个问题

Originally created by @wang543851600 on GitHub (Jan 17, 2026). Originally assigned to: @kommander on GitHub. ### Description 误触ctrl+c会退出opencode且出现自动序列化刷屏,如下内容: C:\Users\250G>^[[<35;43;20m^[[<35;43;21m^[[<35;44;21m^[[<35;44;22m^[[<35;44;21m^[[<35;45;21m^[[<35;46;21m^[[<35;46;20m” [<35;46;21m^[[<35;47;21m^[[<35;47;22m^[[<35;48;22m^[[<35;49;22m^[[<35;50;22m^[[<35;51;23m^[[<35;52;23m^[[<35;53;23m^[[< 5;54;23m^[[<35;55;24m^[[<35;56;24m^[[<35;58;24m^[[<35;59;24m^[[<35;60;25m^[[<35;61;25m^[[<35;63;25m^[[<35;64;25m^[[<35; 5;26m^[[<35;66;26m^[[<35;67;26m^[[<35;66;26m^[[<35;65;26m^[[<35;65;25m^[[<35;64;25m^[[<35;63;24m^[[<35;62;24m^[[<35;61; 4m^[[<35;60;24m^[[<35;59;24m^[[<35;60;24m^[[<35;60;25m^[[<35;59;25m^[[<35;59;26m^[[<35;59;27m^[[<35;58;27m^[[<35;58;28m [<35;57;28m^[[<35;56;28m^[[<35;55;29m^[[<35;54;29m^[[<35;53;29m^[[<35;52;29m^[[<35;53;29m^[[<35;54;29m^[[<35;55;29m^[[· 43;56;29m^[[<43;57;29m^[[<43;58;29m^[[<43;59;29m^[[<43;61;29m^[[<43;62;29m^[[<43;63;29m^[[<43;65;29m^[[<43;67;29m^[[<43 69;29m^[[<43;72;29m^[[<43; 74;30m^[[<43;76;30m^[[<43;78;30m^[[<43;79;30m^[[<43;80;30m^[[<43;81;30m^[[<43;82;30m^[[<43;81 30m^[[<43;80;30m^[a^[[<43;79;30m^[[<43;79;29m^[[<43;78;29m^[[<43;77;29m^[[<43;76;29m^[[<43;75;29m^[[<43;74;29m^[[<43;73 29m^[[<43;72;29m^[a^[[<59;71;29m^[[<59;70;29m^[[<59;69;29m^[[<59;68;29m^[[<59;67;29m^[[<59;66;29m^[[<59;65;29m^[[<59;64 29m^[[<59;63;29m′ A[[<59 2:29m ·[[<59;50;28m^[[<59;48;28| ### Plugins 没有插件 ### OpenCode version 好几个版本一直到最新版本1.1.25都是这个问题 ### Steps to reproduce 任意bash终端打开opencode随便打几个字,然后用鼠标选中一些文字按ctrl+c就会复现,他还退出opencode回到shell命令行自动刷屏序列化且不关闭窗口无法停止 ### Screenshot and/or share link <img width="1115" height="628" alt="Image" src="https://github.com/user-attachments/assets/af0fc8b6-4ead-4d6f-b3d9-bb366f0c1cab" /> ### Operating System windows 10专业版 ### Terminal Windows Terminal以及cmd和PowerShel都会出现这个问题
yindo added the windowsopentuibug labels 2026-02-16 18:04:51 -05:00
yindo closed this issue 2026-02-16 18:04:51 -05:00
Author
Owner

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

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

  • #5070: bug: exiting tui on windows has improper exit sequence handling
  • #7600: Unexpected Error when exit Opencode from terminal

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

@github-actions[bot] commented on GitHub (Jan 17, 2026): This issue might be a duplicate of existing issues. Please check: - #5070: bug: exiting tui on windows has improper exit sequence handling - #7600: Unexpected Error when exit Opencode from terminal Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 17, 2026):

this is a bug in bun, workin on fix

@rekram1-node commented on GitHub (Jan 17, 2026): this is a bug in bun, workin on fix
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6649