Folder sync stops for weeks when one memory's change is larger than the 8 MiB ndjson row limit
Bug Details
Sync across devices (folder sync in iCloud Drive, plain mode) has shown "Needs attention" with "ndjson row > 8388608" for 28 days. Last sync was 28 days ago and 38 changes are pending. A second Mac joined last night, but it can only see changes up to where this Mac stopped, and this Mac still shows Known devices 1.
What we found in the local sync tables: the 38 pending outbox rows start at the first unwritten sequence, and 23 of them are upserts of the same memory, each 7.4 to 8.2 MB and growing. That memory was imported automatically from one long Claude Code session (source claude_code) and its content is now 18.5 MB. The writer seems to write the outbox strictly in sequence, so this one record blocks every later change, including small unrelated ones (a 2 KB memory is stuck behind it). Two more Claude Code imports are already 17.0 MB and 15.9 MB, so they will hit the same wall. The largest row that did sync earlier was 7.3 MB.
Expected: a single oversized record should never stop sync for the whole vault. Possible fixes: split large payloads across rows or store them as a separate blob file in the sync folder; or skip the record, mark it as "too large to sync" in the Conflicts or Sync screen with a button to exclude it, and keep syncing everything else. Superseded upserts of the same record could also be collapsed so only the latest version is written.
Related: the Claude Code importer keeps appending a long-running session into one memory. Splitting a session into several memories (per day or per N turns) would keep entries searchable and small enough to sync.
Also, the sync error is only shown as "ndjson row > 8388608" with no record name, and ~/.1aivault/logs is empty, so it is hard to find which memory is the problem.
Steps to reproduce: enable folder sync, let the Claude Code import grow one session past about 8 MB, then press Sync now.
Reproducibility: Unknown · Impact: Minor issue
Environment
- VERSION
- 1.20.0
- OS
- macOS 26.5
- ARCH
- —
- CHANNEL
- —
Resolution progress
PENDING
REVIEWING
—
IN PROGRESS
COMPLETED
—
- — ThanhLinh submitted this request
- — Khoa - StoicSoft Team moved it to In progress
Discussion2
- ThanhLinhSign in to reply
Verified on 1.20.1: the publishing side is fixed. The three oversized memories (18.9, 17.8 and 16.2 MB) now show under "Too large to sync" and stay on this Mac, while everything else was written. The outbox has 0 pending rows, the last sequence 18,992 is written, every new batch file is under 8 MiB, and the Sync screen shows 2 known devices. Thank you.
The second Mac still cannot catch up, but that is a separate importer error (UNIQUE constraint on entry_aliases), which I filed as its own bug.
- ThanhLinhSign in to reply
Update: I used "Keep off sync — never publish to the shared folder" on the oversized memory, then pressed Sync now. The exclusion is saved (it appears in sync_exclusions), but sync still fails with the same "ndjson row > 8388608", still 38 pending changes.
The reason seems to be that the outbox rows already queued for that memory are not removed when it is excluded. 24 of the 38 pending rows are upserts of the excluded memory, including the first pending sequence, so the writer still hits them first.
So "Keep off sync" stops new changes, but there is no way for the user to clear rows already waiting. It would help if excluding a record dropped (or skipped) its unwritten outbox rows, or if the Sync screen offered "skip this record" when a row is too large.
Sign in to comment, vote and follow this request.
Sign in to reply