mirror of
https://github.com/thedotmack/claude-mem
synced 2026-04-25 17:15:04 +02:00
Fixes #761 Root cause: When connection errors occur (MCP error -32000, Connection closed), the code was resetting \`connected\` and \`client\` but NOT calling \`transport.close()\`, leaving the chroma-mcp subprocess alive. Each reconnection attempt spawned a NEW process while old ones accumulated. Changes: - Close transport before resetting state in ensureCollection() error handler - Close transport before resetting state in queryChroma() error handler - Set transport = null after closing to match close() method behavior - Add regression tests for Issue #761 with source code verification Tested on macOS - no more zombie processes after the fix.