anomalyco / anomalyco/opencode
[FEATURE]: Title: Allow remapping or disabling Ctrl+C to prevent accidental thread loss
Open
@simonklee is already working on this.
Since Sep 4, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Ctrl+C currently interrupts the current generation and drops to a debug prompt. When pasting with Ctrl+V, it's easy to accidentally hit Ctrl+C instead, which loses the entire thread.
Request: Add a config option (e.g. in opencode.json) to remap or disable the Ctrl+C interrupt binding. For example:
{
"keybind": {
"interrupt": "disabled"
}
}
Or allow remapping to a different key combination like Ctrl+Shift+C.
Use case: Prevent accidental thread loss when pasting (Ctrl+V) and the finger slips to Ctrl+C.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.