[BUG] Some notes never exit "modified" status · Issue #72 · basicmachines-co/basic-memory · GitHub
Skip to content

[BUG] Some notes never exit "modified" status #72

Description

@ryanstraight

Bug Description

Some notes never seem to exit "Modified" status, even if sync occurs when file has not been modified.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install version 0.11.0 (Occurred in 0.10.1 as well)
  2. Run command basic-memory sync or sync --verbose or status
  3. Note is in "modified" status
  4. Edit note and re-sync
  5. Note again in "modified" status
  6. Sync again without changing note, note still in "modified" status

Expected Behavior

If note hasn't changed, should no longer be listed as modified.

Actual Behavior

Described above. Note that hash value in verbose sync does not change.

Environment

  • OS: Windows 11 Insider Preview 10.0.26120.3585
  • Python version: 3.13.2
  • Basic Memory version: [e.g. 0.11.0]
  • Installation method: uv (version 0.6.8 (c1ef48276 2025-03-18))
  • Claude Desktop version (if applicable): 0.9.0

Additional Context

Initially I thought it was to do with the file encoding (line endings being either LF or CR LF) but that didn't seem to matter. I've chased it down to having something to do with a wikilink. If the note is synced with a pre-existing link (ie, the note is pasted or moved into the vault from another vault, regardless of whether the wikilinks point to an existing note or not), it can stay at Modified. If that link is removed, the note is synced, and then sync is run again, it gets removed from the status/sync Modified list. If the wikilink is then returned to the file, it shows up as modified at first sync, then when sync is run again, it disappears.

I tried the remove/re-add links to a template, and the remove/re-add doesn't fix the inclusion in the sync Modified list.

Possible Solution

No clue, sadly. Feels random.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions