Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

fix(test): tear down the crush proxy sidecar so the suite can exit

Chaitanya Giri0ef08a57296a
diff --git a/test/crush-provider-config.test.cjs b/test/crush-provider-config.test.cjs
index fb318a36..2c78c534 100644
--- a/test/crush-provider-config.test.cjs
+++ b/test/crush-provider-config.test.cjs
@@ -18,6 +18,10 @@ test('crush provider points CRUSH_GLOBAL_CONFIG at the agent directory', async (
t.after(() => fs.rmSync(home, { recursive: true, force: true }));
const hive = new HiveManager(() => home);
+ // ensureAgent on a proxy-tier provider spawns a real hive-proxy sidecar
+ // (ChildProcess + two sockets). Without this the handle keeps the test
+ // process alive forever and wedges the whole `node --test test/*` run.
+ t.after(() => { try { hive.stopAllProxyBridges(); } catch { /* already gone */ } });
const injection = await hive.ensureAgent({
id: 'crush-1',
name: 'Crush Worker',