Skip to content

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

chore(debug): log shutdown reason in web-ui script

Steven Enamakelc5b6b7c08558
diff --git a/scripts/debug/web-ui.mjs b/scripts/debug/web-ui.mjs
index 4675871e45..18c060e673 100644
--- a/scripts/debug/web-ui.mjs
+++ b/scripts/debug/web-ui.mjs
@@ -55,6 +55,7 @@ let shuttingDown = false;
async function shutdown(code) {
if (shuttingDown) return;
shuttingDown = true;
+ log(`shutting down (exit ${code})`);
await browser?.close().catch(() => {});
for (const child of children) {
// Each child leads its own process group, so pnpm/node grandchildren go too.