Skip to content

ctrl+c无法终止程序 #13276

Closed as not planned
Closed as not planned

Description

@yunshou79

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

Activity

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

    @github-actions
    Contributor

    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
  3. yunshou79 commented on Feb 12, 2026

    @yunshou79
    Author

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

  4. kznr02 commented on Feb 12, 2026

    @kznr02

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

  5. changed the title [-]貌似是一个bug,但是不太确定的[/-] [+]ctrl+c无法终止程序[/+] on Feb 12, 2026
  6. yunshou79 commented on Feb 12, 2026

    @yunshou79
    Author

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

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

  7. dcc123456 commented on Mar 30, 2026

    @dcc123456

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

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

    我也遇到这个问题了,不能停止

  8. added a commit that references this issue on Apr 8, 2026
    fcb658a
  9. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  10. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions