Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

test(usage): await Chrome shutdown after the close acknowledgement

reviewf1b562585c91
diff --git a/scripts/usage-layout.test.ts b/scripts/usage-layout.test.ts
index 706f3870b..e7f5a1163 100644
--- a/scripts/usage-layout.test.ts
+++ b/scripts/usage-layout.test.ts
@@ -78,6 +78,9 @@ it.skipIf(!existsSync(chrome))('keeps refresh clickable beside/above the real do
console.log(result)
} finally {
await call('Browser.close')
+ // The CDP acknowledgement precedes profile flush/child shutdown. Wait for the process
+ // to finish normally before the fallback kill, or it can leave writers racing cleanup.
+ await exited
ws.close()
}
} finally {