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
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
review: narrow the stdin swallow to EPIPE
lavadman4cdd0393f758
diff --git a/test/hive-hook-node.test.cjs b/test/hive-hook-node.test.cjsindex eed87bba..4783ca79 100644--- a/test/hive-hook-node.test.cjs+++ b/test/hive-hook-node.test.cjs@@ -73,7 +73,13 @@ async function run(cmd, env) {// that is already gone makes this write EPIPE, and an unhandled 'error' on// stdin rejects the test rather than the command under test failing. The exit// code is what this helper reports, so a lost write is not a lost signal.- child.stdin.on('error', () => { /* child exited before reading stdin */ });+ // Narrow on purpose: EPIPE is the expected one and is swallowed, anything+ // else (EACCES, ERR_STREAM_DESTROYED) is surfaced through the stderr this+ // helper already returns, so an unexpected stdin fault names itself instead+ // of vanishing.+ child.stdin.on('error', (e) => {+ if (e.code !== 'EPIPE') stderr += `stdin: ${e.message}\n`;+ });child.stdin.end(JSON.stringify({ hook_event_name: 'Stop', session_id: 's1' }));child.on('close', (code) => resolve({ code, stderr }));});