opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Ctrl+C behavior in Windows PowerShell

Open segaduck opened this issue 1 month ago • 2 comments

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

segaduck avatar Dec 07 '25 11:12 segaduck

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] avatar Dec 07 '25 11:12 github-actions[bot]

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

github-actions[bot] avatar Dec 07 '25 11:12 github-actions[bot]

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

dogmatic69 avatar Dec 07 '25 20:12 dogmatic69