Skip to content

fix(mcp): clean up orphan merkle snapshots#354

Merged
zc277584121 merged 1 commit intozilliztech:masterfrom
Showiix:fix/cleanup-orphan-merkle-snapshots
Apr 29, 2026
Merged

fix(mcp): clean up orphan merkle snapshots#354
zc277584121 merged 1 commit intozilliztech:masterfrom
Showiix:fix/cleanup-orphan-merkle-snapshots

Conversation

@Showiix
Copy link
Copy Markdown
Contributor

@Showiix Showiix commented Apr 28, 2026

Summary

  • delete the local FileSynchronizer merkle snapshot when cloud sync removes a local codebase that no longer exists in cloud collections
  • keep the cleanup best-effort so a local cache deletion failure does not abort cloud snapshot reconciliation
  • reuse the existing FileSynchronizer.deleteSnapshot() helper and avoid dropping any collection from cloud sync

Tests

  • pnpm --filter @zilliz/claude-context-mcp typecheck
  • pnpm --filter @zilliz/claude-context-mcp build
  • pnpm --filter @zilliz/claude-context-core typecheck
  • pnpm --filter @zilliz/claude-context-core build

Fixes #257

@zc277584121 zc277584121 merged commit 968cce6 into zilliztech:master Apr 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orphaned merkle files not cleaned up on index clear

2 participants