Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(debug): stop playwright from handling signals in web-ui

Steven Enamakel088990c39581
diff --git a/scripts/debug/web-ui.mjs b/scripts/debug/web-ui.mjs
index 4885c137e5..0691b747c4 100644
--- a/scripts/debug/web-ui.mjs
+++ b/scripts/debug/web-ui.mjs
@@ -189,6 +189,11 @@ async function main() {
browser = await chromium.launch({
headless: !opts.headed,
args: ["--disable-dev-shm-usage"],
+ // Playwright's own signal handlers close the browser and exit the
+ // process, which would skip `shutdown` and leak the core and Vite.
+ handleSIGINT: false,
+ handleSIGTERM: false,
+ handleSIGHUP: false,
});
const context = await browser.newContext({ viewport: { width: 1300, height: 900 } });
const browserLog = fs.createWriteStream(path.join(logDir, "browser.log"));