The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test(hooks): assert the SessionStart child exits cleanly
basil-k-aji-dev3c0297e737bf
diff --git a/tests/hooks/claude-config-dir-routing.test.js b/tests/hooks/claude-config-dir-routing.test.jsindex 1d6e78fa3..8583cd83a 100644--- a/tests/hooks/claude-config-dir-routing.test.js+++ b/tests/hooks/claude-config-dir-routing.test.js@@ -205,6 +205,9 @@ function runTests() {k1: { file: '/work/leaked.md', status: 'open', pendingFeedback: [] },});const result = runHook('plan-canvas-sessions.js', { home, profile });+ // Silence is the assertion here, and a hook that crashed before writing is+ // also silent, so the exit status has to be checked first.+ assert.strictEqual(result.status, 0, `SessionStart failed: ${result.stderr}`);assert.strictEqual(result.stdout.trim(), '');}));