Problem
When index is cleared via Zilliz Cloud console (not via clear_index tool), local merkle files remain.
Current Behavior
clearIndex() in context.ts calls FileSynchronizer.deleteSnapshot(), but if user deletes collection directly in cloud:
- Cloud collection gone
- Local
~/.context/merkle/<hash>.json remains
- Local
~/.context/mcp-codebase-snapshot.json still lists codebase (until cloud sync removes it)
Impact
Disk space waste from orphaned merkle files over time.
Expected Behavior
Background sync should detect missing cloud collections and clean up corresponding merkle files.
Location
packages/mcp/src/handlers.ts:118-124 - removes from snapshot but not merkle
packages/core/src/sync/synchronizer.ts:329-347 - deleteSnapshot()
Problem
When index is cleared via Zilliz Cloud console (not via
clear_indextool), local merkle files remain.Current Behavior
clearIndex()in context.ts callsFileSynchronizer.deleteSnapshot(), but if user deletes collection directly in cloud:~/.context/merkle/<hash>.jsonremains~/.context/mcp-codebase-snapshot.jsonstill lists codebase (until cloud sync removes it)Impact
Disk space waste from orphaned merkle files over time.
Expected Behavior
Background sync should detect missing cloud collections and clean up corresponding merkle files.
Location
packages/mcp/src/handlers.ts:118-124- removes from snapshot but not merklepackages/core/src/sync/synchronizer.ts:329-347- deleteSnapshot()