Ctrl+C behavior in Windows PowerShell #3374

Closed
opened 2026-02-16 17:39:49 -05:00 by yindo · 3 comments
Owner

Originally created by @segaduck on GitHub (Dec 7, 2025).

Description

Thank you guys first. I switch from ClaudeCode to OpenCode and I love it a lot !!!
But 1 issue is bothering me for a long time:
in PowerShell terminal (ver. 7.5.4), everytime I press "Ctrl+c", the OpenCode session will be terminate immediately and I have to use "opencode -c" to go back to my sesssion again. becasue the Ctrl+C is the mostly freqently use hot key for copying text, is it a bug? Or It is just my fault missing anything needed to config well ?

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @segaduck on GitHub (Dec 7, 2025). ### Description Thank you guys first. I switch from ClaudeCode to OpenCode and I love it a lot !!! But 1 issue is bothering me for a long time: in PowerShell terminal (ver. 7.5.4), everytime I press "Ctrl+c", the OpenCode session will be terminate immediately and I have to use "opencode -c" to go back to my sesssion again. becasue the Ctrl+C is the mostly freqently use hot key for copying text, is it a bug? Or It is just my fault missing anything needed to config well ? ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:39:49 -05:00
yindo closed this issue 2026-02-16 17:39:49 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 7, 2025):

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

  • #2999: Provide means to disable Ctrl-C (Windows quits app)
  • #5071: bug: ctrl+c exiting app even when prompt input isn't empty
  • #4997: Keybinds (pinned issue tracking Ctrl+C and other keybind problems on Windows)
  • #3294: Panic: close of closed channel in status component cleanup (Windows/PowerShell)
  • #3057: Provide a way to stop all running scripts when OpenCode is interrupted

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

@github-actions[bot] commented on GitHub (Dec 7, 2025): This issue might be a duplicate of existing issues. Please check: - #2999: Provide means to disable Ctrl-C (Windows quits app) - #5071: bug: ctrl+c exiting app even when prompt input isn't empty - #4997: Keybinds (pinned issue tracking Ctrl+C and other keybind problems on Windows) - #3294: Panic: close of closed channel in status component cleanup (Windows/PowerShell) - #3057: Provide a way to stop all running scripts when OpenCode is interrupted Feel free to ignore if none of these address your specific case.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 7, 2025):

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

@github-actions[bot] commented on GitHub (Dec 7, 2025): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Author
Owner

@dogmatic69 commented on GitHub (Dec 7, 2025):

exact duplicate of https://github.com/sst/opencode/issues/2999

@dogmatic69 commented on GitHub (Dec 7, 2025): exact duplicate of https://github.com/sst/opencode/issues/2999
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3374