The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Fix integration/hooks tests to handle Windows platform differences
copilot-swe-agent[bot]f61c9b0cafca
diff --git a/tests/integration/hooks.test.js b/tests/integration/hooks.test.jsindex 88f43260f..6bf0f064e 100644--- a/tests/integration/hooks.test.js+++ b/tests/integration/hooks.test.js@@ -262,8 +262,13 @@ async function runTests() {});});- assert.ok(stderr.includes('BLOCKED'), 'Blocking hook should output BLOCKED');- assert.strictEqual(code, 2, 'Blocking hook should exit with code 2');+ // Hook only blocks on non-Windows platforms (tmux is Unix-only)+ if (process.platform === 'win32') {+ assert.strictEqual(code, 0, 'On Windows, hook should not block (exit 0)');+ } else {+ assert.ok(stderr.includes('BLOCKED'), 'Blocking hook should output BLOCKED');+ assert.strictEqual(code, 2, 'Blocking hook should exit with code 2');+ }})) passed++; else failed++;// ==========================================@@ -298,7 +303,12 @@ async function runTests() {});});- assert.strictEqual(code, 2, 'Blocking hook should exit 2');+ // Hook only blocks on non-Windows platforms (tmux is Unix-only)+ if (process.platform === 'win32') {+ assert.strictEqual(code, 0, 'On Windows, hook should not block (exit 0)');+ } else {+ assert.strictEqual(code, 2, 'Blocking hook should exit 2');+ }})) passed++; else failed++;if (await asyncTest('hooks handle missing files gracefully', async () => {