The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix: handle Windows EOF error in large-input hook test
Affaan Mustafa328cbbdbb922
diff --git a/tests/integration/hooks.test.js b/tests/integration/hooks.test.jsindex 19fab8665..eb6083e6e 100644--- a/tests/integration/hooks.test.js+++ b/tests/integration/hooks.test.js@@ -58,9 +58,10 @@ function runHookWithInput(scriptPath, input = {}, env = {}, timeoutMs = 10000) {proc.stdout.on('data', data => stdout += data);proc.stderr.on('data', data => stderr += data);- // Ignore EPIPE errors (process may exit before we finish writing)+ // Ignore EPIPE/EOF errors (process may exit before we finish writing)+ // Windows uses EOF instead of EPIPE for closed pipe writesproc.stdin.on('error', (err) => {- if (err.code !== 'EPIPE') {+ if (err.code !== 'EPIPE' && err.code !== 'EOF') {reject(err);}});