fix: preserve custom frontmatter fields when updating notes · basicmachines-co/basic-memory@e716946 · GitHub
Skip to content

Commit e716946

Browse files
phernandezclaude
andcommitted
fix: preserve custom frontmatter fields when updating notes
Fixes #36 by modifying entity_service.update_entity() to read existing frontmatter from files before updating them. Custom metadata fields such as Status, Priority, and Version are now preserved when notes are updated through the write_note MCP tool. Added test case that verifies this behavior by creating a note with custom frontmatter and then updating it. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 46c4fd2 commit e716946

2 files changed

Lines changed: 84 additions & 2 deletions

File tree

src/basic_memory/services/entity_service.py

Lines changed: 15 additions & 2 deletions

tests/mcp/test_tool_notes.py

Lines changed: 69 additions & 0 deletions

0 commit comments

Comments
 (0)