Skip to content

In the Windows system, pressing Ctrl+C will automatically exit the terminal #6189

Closed

Description

@74596877

Description

even if I modify the exit shortcut in the settings or set it to node.

OpenCode version

1.0.202

Steps to reproduce

1.Run opencode
2.Press Ctrl+C twice

Screenshot and/or share link

Image

Operating System

windows11

Terminal

PowerShell

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 26, 2025
  2. github-actions commented on Dec 26, 2025

    @github-actions
    Contributor

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

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

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  3. Hona commented on Feb 12, 2026

    @Hona
    Member

    ctrl+c handling is now in as of 1.1.60

  4. G10h4ck commented on Mar 27, 2026

    @G10h4ck

    This is still happening also on Linux and even with Ctrl+Shift+c which is Konsole shortcut for copy action (and many other terminals), disabling Ctrl+c keybinding in tui.json won't help. Terribly annoying :-(

    $ opencode --version
    1.2.6
    
    $ cat  ~/.config/opencode/tui.json 
    {
      "$schema": "https://opencode.ai/tui.json",
      "keybinds": {
        "app_exit": "<leader>q",
        "input_clear": "none"
      }
    }
    
  5. Hona commented on Mar 28, 2026

    @Hona
    Member

    @G10h4ck can you upgrade to the latest and let me know?

    we are on opencode version 1.3.3

  6. G10h4ck commented on Mar 29, 2026

    @G10h4ck

    @G10h4ck can you upgrade to the latest and let me know?

    we are on opencode version 1.3.3

    it works now, thanks, the only strange thing is that if I don't customize tui.json Ctrl+Shift+c causes opencode to terminate, while this is not happening with other programs which terminates only with Ctrl+c (without Shift)

    Anyway it is solved for me, thanks :-)

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