My OpenCode plugin to stop it from quitting on Ctrl+C
Switching between Claude Code, Codex, and OpenCode means my muscle memory for Ctrl+C constantly gets me in trouble as I’m accidentally killing my OpenCode sessions and wiping my progress because I’m used to the safer behavior from Claude Code and Codex. To deal with that, I wrote an opencode-v2-double-ctrl-c, a tiny OpenCode v2 TUI plugin that stops OpenCode TUI from quitting on a single Ctrl+C.
…
