Skip to content
6 changes: 6 additions & 0 deletions packages/opencode/src/cli/cmd/tui/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ export function tui(input: {
resolve()
}

// Prevent SIGINT from immediately terminating process on Windows
// exitOnCtrlC: false tells opentui not to exit, but Node still receives SIGINT
// Empty handler prevents default termination, letting keyboard handlers work
const noopHandler = () => {}
process.on("SIGINT", noopHandler)

render(
() => {
return (
Expand Down