From a26a77ef2dea515c36c874203f06bee6519c5c65 Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Fri, 20 Mar 2026 22:54:16 +0100 Subject: [PATCH] fix(screenshots): force exit after capture to kill orphaned server pnpm spawns vite as a grandchild process that SIGTERM doesn't reach, leaving the CI job hanging after screenshots are captured. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/screenshots.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/screenshots.ts b/scripts/screenshots.ts index c486ccf..123c02f 100644 --- a/scripts/screenshots.ts +++ b/scripts/screenshots.ts @@ -98,6 +98,9 @@ async function main(): Promise { } finally { await browser.close(); server.kill('SIGTERM'); + // Force exit — pnpm spawns vite as a grandchild process that + // server.kill() doesn't reach, leaving the CI job hanging + process.exit(0); } }