Repository navigation
fix(memory): keep each fact on one MEMORY.md line so delete removes it all - #505
Merged
Merged
Conversation
…t all append_entry wrote a remembered fact as-is. A multi-line fact spread over several lines, and remove_entry drops only the line holding its `(id:…)` marker, so `delete` left the rest in the index injected into every prompt. The MEMORY.md line now collapses whitespace; the database keeps the original text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mrnasil
enabled auto-merge (squash)
November 25, 2026 15:57
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
append_entrywrote a remembered fact to MEMORY.md as-is, so a multi-line fact took up several lines.remove_entrydrops only the line that holds the(id:…)marker, sodeleteleft the fact's other lines in the index that is injected into every prompt.The MEMORY.md line now collapses all whitespace, newlines included, into single spaces, so each fact is one line and
deleteremoves all of it. The database keeps the original text.Test: a three-line fact is written on one line and removed completely. All 95 memory tests pass.
🤖 Generated with Claude Code