chore: cleanup from PR review

- 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 <noreply@anthropic.com>
This commit is contained in:
Alex Newman
2025-12-07 23:37:43 -05:00
parent b9814e87f4
commit 512486bd85
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ async function waitForPort(port: number, maxWaitMs: number = 10000): Promise<boo
while (Date.now() - startTime < maxWaitMs) {
try {
execSync(`curl -s -f -m 1 "http://localhost:${port}/api/health" > /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<string> {
);
}
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();
}