anomalyco / anomalyco/opencode

[FEATURE]: Title: Allow remapping or disabling Ctrl+C to prevent accidental thread loss

Open
#47,290 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.