diff --git a/ccw/src/core/routes/codexlens/config-handlers.ts b/ccw/src/core/routes/codexlens/config-handlers.ts index f6684bb1..f7175db1 100644 --- a/ccw/src/core/routes/codexlens/config-handlers.ts +++ b/ccw/src/core/routes/codexlens/config-handlers.ts @@ -110,8 +110,11 @@ export async function handleCodexLensConfigRoutes(ctx: RouteContext): Promise r.json()).then(d => setCacheData('rerankerConfig', d)) : Promise.resolve(), !isCacheValid('rerankerModels') ? fetch('/api/codexlens/reranker/models').then(r => r.json()).then(d => setCacheData('rerankerModels', d)).catch(() => null) : Promise.resolve(), // Workspace status - !isCacheValid('workspaceStatus') ? fetch('/api/codexlens/workspace-status').then(r => r.json()).then(d => setCacheData('workspaceStatus', d)).catch(() => null) : Promise.resolve(), + !isCacheValid('workspaceStatus') ? fetch('/api/codexlens/workspace-status?path=' + encodeURIComponent(projectPath || '')).then(r => r.json()).then(d => setCacheData('workspaceStatus', d)).catch(() => null) : Promise.resolve(), // Semantic status (for FastEmbed detection) !isCacheValid('semanticStatus') ? fetch('/api/codexlens/semantic/status').then(r => r.json()).then(d => setCacheData('semanticStatus', d)).catch(() => null) : Promise.resolve(), // Environment variables @@ -172,7 +172,7 @@ async function refreshWorkspaceIndexStatus(forceRefresh) { } try { - var response = await fetch('/api/codexlens/workspace-status'); + var response = await fetch('/api/codexlens/workspace-status?path=' + encodeURIComponent(projectPath || '')); var result = await response.json(); // Cache the result