The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test: harden mcp health port readiness
Affaan Mustafa67a8b914ee66
diff --git a/tests/hooks/mcp-health-check.test.js b/tests/hooks/mcp-health-check.test.jsindex 02145adef..b637353fb 100644--- a/tests/hooks/mcp-health-check.test.js+++ b/tests/hooks/mcp-health-check.test.js@@ -128,7 +128,10 @@ function waitForFile(filePath, timeoutMs = 5000) {const started = Date.now();while (Date.now() - started < timeoutMs) {if (fs.existsSync(filePath)) {- return fs.readFileSync(filePath, 'utf8');+ const content = fs.readFileSync(filePath, 'utf8');+ if (content.trim()) {+ return content;+ }}Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 25);}