mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
Fix task click handlers not working in multi-CLI planning detail page.
Root cause: liteTaskDataStore was not being populated with multiCliPlan
sessions during initialization, so task click handlers couldn't access
session data using currentSessionDetailKey.
Changes:
- navigation.js: Add code to populate multiCliPlan sessions in liteTaskDataStore
- notifications.js: Add code to populate multiCliPlan sessions when data refreshes
Now when task detail page loads, liteTaskDataStore contains the correct key
'multi-cli-${sessionId}' matching currentSessionDetailKey, allowing task
click handlers to find session data and open detail drawer.
Verified: Task clicks now properly open detail panel for all 7 tasks.
CodexLens Routes
CodexLens-related HTTP endpoints are handled by ccw/src/core/routes/codexlens-routes.ts, which delegates to handler modules in this directory. Each handler returns true when it handles the current request.
File Map
ccw/src/core/routes/codexlens/utils.ts– shared helpers (ANSI stripping + robust JSON extraction from CLI output).ccw/src/core/routes/codexlens/index-handlers.ts– index/project management endpoints:GET /api/codexlens/indexesPOST /api/codexlens/cleanPOST /api/codexlens/initPOST /api/codexlens/cancelGET /api/codexlens/indexing-status
ccw/src/core/routes/codexlens/config-handlers.ts– install/config/environment endpoints:GET /api/codexlens/statusGET /api/codexlens/dashboard-initPOST /api/codexlens/bootstrapPOST /api/codexlens/uninstallGET /api/codexlens/configPOST /api/codexlens/config- GPU:
GET /api/codexlens/gpu/detect,GET /api/codexlens/gpu/list,POST /api/codexlens/gpu/select,POST /api/codexlens/gpu/reset - Models:
GET /api/codexlens/models,POST /api/codexlens/models/download,POST /api/codexlens/models/delete,GET /api/codexlens/models/info - Env:
GET /api/codexlens/env,POST /api/codexlens/env
ccw/src/core/routes/codexlens/semantic-handlers.ts– semantic search + reranker + SPLADE endpoints:- Semantic:
GET /api/codexlens/semantic/status,GET /api/codexlens/semantic/metadata,POST /api/codexlens/semantic/install - Search:
GET /api/codexlens/search,GET /api/codexlens/search_files,GET /api/codexlens/symbol,POST /api/codexlens/enhance - Reranker:
GET /api/codexlens/reranker/config,POST /api/codexlens/reranker/config,GET /api/codexlens/reranker/models,POST /api/codexlens/reranker/models/download,POST /api/codexlens/reranker/models/delete,GET /api/codexlens/reranker/models/info - SPLADE:
GET /api/codexlens/splade/status,POST /api/codexlens/splade/install,GET /api/codexlens/splade/index-status,POST /api/codexlens/splade/rebuild
- Semantic:
ccw/src/core/routes/codexlens/watcher-handlers.ts– file watcher endpoints:GET /api/codexlens/watch/statusPOST /api/codexlens/watch/startPOST /api/codexlens/watch/stop- Also exports
stopWatcherForUninstall()used during uninstall flow.
Notes
- CodexLens CLI output may include logging + ANSI escapes even with
--json; handlers useextractJSON()fromutils.tsto parse reliably.