From 495831da29fe33ac86dfa89780f685953954e240 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sun, 1 Nov 2026 12:07:34 +0100 Subject: [PATCH] Stop waiting for approval when the terminal closes SIGHUP while waiting for approval released the config lock but left the host polling, as only SIGINT and SIGTERM stopped the wait. --- packages/host/host.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/host/host.ts b/packages/host/host.ts index d72d692b..a5302b70 100755 --- a/packages/host/host.ts +++ b/packages/host/host.ts @@ -232,6 +232,7 @@ async function startHost() { const onSignal = () => { abort.abort(); }; process.on("SIGINT", onSignal); process.on("SIGTERM", onSignal); + process.on("SIGHUP", onSignal); try { await ensurePaired(hostConfig, { version: packageConfig.version, @@ -253,6 +254,7 @@ async function startHost() { } finally { process.off("SIGINT", onSignal); process.off("SIGTERM", onSignal); + process.off("SIGHUP", onSignal); } }