From a73ac650e9922e6fd52411ea58c9a9b7ea615cdc Mon Sep 17 00:00:00 2001 From: James Long Date: Mon, 9 Mar 2026 11:56:36 -0400 Subject: [PATCH] fix(tui): revert "fix(core): handle SIGHUP and kill process (#16057)" This reverts commit 45ac20b8aa1c96751af6824bf7dd736554ef7938. --- packages/opencode/src/index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index 4fd5f0e67b..35b42dce77 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -46,11 +46,6 @@ process.on("uncaughtException", (e) => { }) }) -// Ensure the process exits on terminal hangup (eg. closing the terminal tab). -// Without this, long-running commands like `serve` block on a never-resolving -// promise and survive as orphaned processes. -process.on("SIGHUP", () => process.exit()) - let cli = yargs(hideBin(process.argv)) .parserConfiguration({ "populate--": true }) .scriptName("opencode")