Ctrl+C behavior in Windows PowerShell
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
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.
For keybind-related issues, please also check our pinned keybinds documentation: #4997
exact duplicate of https://github.com/sst/opencode/issues/2999