Bug Fix: store() after delete() of same content
This patch release fixes a regression where soft-deleted memories left a tombstone row that prevented the same content from being re-stored.
Fixed
- [#644]
store()fails with UNIQUE constraint afterdelete()of same content: Soft-deleted memories leave a tombstone row (deleted_atset) that causedINSERT OR IGNOREto silently drop re-insertions andINSERTto raiseUNIQUE constraint failed. Fixed by adding_purge_tombstone(content_hash)helper toSqliteVecMemoryStoragethat removes the tombstone before any INSERT. Applied tostore(),store_batch(), andupdate_memory_versioned(). Closes #644.
Tests
- Added
test_store_after_delete_same_contentcovering the full delete → re-store roundtrip. - Total: 1,521 tests (1 new).
Upgrade
pip install mcp-memory-service==10.31.1
# or
uv add mcp-memory-service==10.31.1Full changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md