From 2e67821445e6234a67a2c5f41b48d86b7319964e Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sat, 6 Dec 2025 22:25:58 +0000 Subject: [PATCH] fix: Correct context-generator import path in SearchRoutes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /api/context/inject endpoint was using an incorrect relative import path for context-generator.cjs. Since SearchRoutes is in src/services/worker/http/routes/, the correct path to reach src/services/context-generator.ts is ../../../context-generator.js This fixes the session start context injection issue where the hook would print correctly but no context would load in the session. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Alex Newman --- src/services/worker/http/routes/SearchRoutes.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/worker/http/routes/SearchRoutes.ts b/src/services/worker/http/routes/SearchRoutes.ts index d7b52bd9..87434b0c 100644 --- a/src/services/worker/http/routes/SearchRoutes.ts +++ b/src/services/worker/http/routes/SearchRoutes.ts @@ -324,8 +324,7 @@ export class SearchRoutes { } // Import context generator (runs in worker, has access to database) - // Note: After bundling, context-generator.cjs is in the same directory as worker-service.cjs - const { generateContext } = await import('./context-generator.cjs'); + const { generateContext } = await import('../../../context-generator.js'); // Use project name as CWD (generateContext uses path.basename to get project) const cwd = `/context/${projectName}`;