.maestro/playbooks/2026-03-12-CM-Issues-PRs/2026-03-12-Issues-PRs-Triage/TRIAGE-07-Search-Chroma-Stability.md
Search is claude-mem's primary user-facing feature. These bugs cause MCP search to return 500 errors or fail to connect to Chroma entirely, degrading the core value proposition. The fixes are in the search orchestration and Chroma connection layers.
Issues addressed: #1263, #1261, #1232, #1266 Prerequisite: Phases 01-06 should be complete (especially Phase 06's Windows Chroma fix and Phase 02's Chroma CPU fix).
Fix MCP search Worker API 500 errors (#1263). The search MCP tool returns HTTP 500 from the worker API, which surfaces as an opaque error to users:
SearchRoutes in src/services/worker/http/routes/src/services/search/SearchManager.ts or equivalent to find the search orchestration logicchromaSync === null handling)ChromaMcpManager.callTool()Fix Chroma "Collection setup failed" on cacheDir initialization (#1261, #1232). Users report Chroma failing to connect with collection setup errors. These are likely caused by the Chroma MCP subprocess dying or not starting:
src/services/sync/ChromaMcpManager.ts — find the collection creation/verification pathcollection, setup, cacheDir to find where the error originatesthis.connected = false) and log the error — SQLite search remains functionalChromaMcpManager.ts, ensure the data directory is created with mkdirSync(path, { recursive: true }) before starting chroma-mcp Fix MCP connection loss while worker appears healthy (#1266). Users report MCP tools stop working even though localhost:37777 responds to health checks:
src/services/worker-service.ts — find where the MCP server is set up and how tools are registered/api/health endpoint — include mcpConnected: true/false in the health responsesrc/services/worker/http/routes/ has a health route that can be extendedRun tests and verify search functionality:
npm test — all tests must passnpm run build-and-synccurl 'http://localhost:37777/api/search?q=test&limit=5' should return results (adjust endpoint path based on actual route)