ctrl+c无法终止程序 #9147

Open
opened 2026-02-16 18:11:44 -05:00 by yindo · 4 comments
Owner

Originally created by @yunshou79 on GitHub (Feb 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Image ctrl+c复制模型回答的内容后,程序自动关闭,并且开始生成符号,再次终止程序后继续生成

Plugins

OpenCode version

最新版本

Steps to reproduce

opencode打开一个新的任务,执行后,复制生成内容的一段文字,终端opencode会中断任务,并且开始持续生成

Screenshot and/or share link

No response

Operating System

Windows11

Terminal

Windows terminal

Originally created by @yunshou79 on GitHub (Feb 12, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description <img width="1123" height="301" alt="Image" src="https://github.com/user-attachments/assets/efe9528c-c2d4-4fd6-b1bc-af35bfbbe9ac" /> ctrl+c复制模型回答的内容后,程序自动关闭,并且开始生成符号,再次终止程序后继续生成 ### Plugins 无 ### OpenCode version 最新版本 ### Steps to reproduce opencode打开一个新的任务,执行后,复制生成内容的一段文字,终端opencode会中断任务,并且开始持续生成 ### Screenshot and/or share link _No response_ ### Operating System Windows11 ### Terminal Windows terminal
yindo added the windowsopentuibug labels 2026-02-16 18:11:44 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 12, 2026):

Summary

This issue appears to report a bug where copying generated content (ctrl+c) in OpenCode causes the program to interrupt and begin generating unexpected symbols.

Status: This issue is compliant with contributing guidelines - it includes a Bug Report template with:

  • Description (with screenshot)
  • Reproduction steps
  • Operating system and terminal information
  • OpenCode version

Note: While the issue follows the template correctly, if you encounter this again, please provide additional details such as:

  • Any error messages displayed
  • Whether this happens with specific model providers or all providers
  • If there are any terminal logs that might help diagnose the behavior
@github-actions[bot] commented on GitHub (Feb 12, 2026): ## Summary This issue appears to report a bug where copying generated content (ctrl+c) in OpenCode causes the program to interrupt and begin generating unexpected symbols. **Status**: This issue is compliant with contributing guidelines - it includes a Bug Report template with: - Description (with screenshot) - Reproduction steps - Operating system and terminal information - OpenCode version **Note**: While the issue follows the template correctly, if you encounter this again, please provide additional details such as: - Any error messages displayed - Whether this happens with specific model providers or all providers - If there are any terminal logs that might help diagnose the behavior
Author
Owner

@yunshou79 commented on GitHub (Feb 12, 2026):

我已经中断了opencode的执行,但是终端还是会生成这些内容

@yunshou79 commented on GitHub (Feb 12, 2026): 我已经中断了opencode的执行,但是终端还是会生成这些内容
Author
Owner

@kznr02 commented on GitHub (Feb 12, 2026):

这个是终端应用没有正常退出raw模式大概?所有捕获的输入都会以代码的形式输出,并且opencode不支持cv复制,你需要右键选择复制或者高亮文字后右键,否则就会直接退出。
btw 你的issue标题应该直接包含问题。

@kznr02 commented on GitHub (Feb 12, 2026): 这个是终端应用没有正常退出raw模式大概?所有捕获的输入都会以代码的形式输出,并且opencode不支持cv复制,你需要右键选择复制或者高亮文字后右键,否则就会直接退出。 btw 你的issue标题应该直接包含问题。
Author
Owner

@yunshou79 commented on GitHub (Feb 12, 2026):

这个是终端应用没有正常退出raw模式大概?所有捕获的输入都会以代码的形式输出,并且opencode不支持cv复制,你需要右键选择复制或者高亮文字后右键,否则就会直接退出。btw 你的问题标题应该直接包含问题。

ok,我已修改我的issue,但是确实是像一个bug,ctrl+c无法终止程序的,这个会持续生成

@yunshou79 commented on GitHub (Feb 12, 2026): > 这个是终端应用没有正常退出raw模式大概?所有捕获的输入都会以代码的形式输出,并且opencode不支持cv复制,你需要右键选择复制或者高亮文字后右键,否则就会直接退出。btw 你的问题标题应该直接包含问题。 ok,我已修改我的issue,但是确实是像一个bug,ctrl+c无法终止程序的,这个会持续生成
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9147