From 512486bd85f8339c46915258accec262537b116b Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Sun, 7 Dec 2025 23:37:43 -0500 Subject: [PATCH] chore: cleanup from PR review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Delete empty SearchRoutes.ts.new leftover file - Standardize on 127.0.0.1 in context-hook.ts (avoids DNS lookup) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/hooks/context-hook.ts | 4 ++-- src/services/worker/http/routes/SearchRoutes.ts.new | 0 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 src/services/worker/http/routes/SearchRoutes.ts.new diff --git a/src/hooks/context-hook.ts b/src/hooks/context-hook.ts index 625b6ff0..4018a9d0 100644 --- a/src/hooks/context-hook.ts +++ b/src/hooks/context-hook.ts @@ -26,7 +26,7 @@ async function waitForPort(port: number, maxWaitMs: number = 10000): Promise /dev/null 2>&1`, { + execSync(`curl -s -f -m 1 "http://127.0.0.1:${port}/api/health" > /dev/null 2>&1`, { timeout: 1000, }); return true; @@ -50,7 +50,7 @@ async function contextHook(input?: SessionStartInput): Promise { ); } - const url = `http://localhost:${port}/api/context/inject?project=${encodeURIComponent(project)}`; + const url = `http://127.0.0.1:${port}/api/context/inject?project=${encodeURIComponent(project)}`; const result = execSync(`curl -s "${url}"`, { encoding: "utf-8", timeout: 5000 }); return result.trim(); } diff --git a/src/services/worker/http/routes/SearchRoutes.ts.new b/src/services/worker/http/routes/SearchRoutes.ts.new deleted file mode 100644 index e69de29b..00000000