From 52825512775430126aaae70a8e97089b6d7f474a Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 12 Jan 2026 21:00:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20CodexLens=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8C=BA=E7=8A=B6=E6=80=81=20API=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=80=9A=E8=BF=87=E6=9F=A5=E8=AF=A2=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=8C=87=E5=AE=9A=E9=A1=B9=E7=9B=AE=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ccw/src/core/routes/codexlens/config-handlers.ts | 7 +++++-- ccw/src/templates/dashboard-js/views/codexlens-manager.js | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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