canvas-website/backlog/tasks/task-063 - Fix-Obsidian-vau...

1.2 KiB

id title status assignee created_date updated_date labels dependencies priority
task-063 Fix Obsidian vault storage overflow - store content in IndexedDB Done
2026-01-22 20:03 2026-01-23 08:41
bug
obsidian
automerge
high

Description

The Obsidian vault browser is storing full note content in Automerge, causing capacity overflow errors and localStorage quota exceeded errors. Need to:

  1. Store only metadata in Automerge (id, title, tags, links, paths)
  2. Store full content in IndexedDB separately
  3. Clear existing vault data from Automerge for privacy
  4. Load content on-demand when notes are opened

Implementation Notes

Implementation complete:

  • Created NoteContentStore (src/lib/noteContentStore.ts) for IndexedDB storage
  • Added light record types (ObsidianObsNoteMeta, FolderNodeMeta, ObsidianVaultRecordLight)
  • Modified saveVaultToAutomerge to save only metadata to Automerge, content to IndexedDB
  • Added clearVaultFromAutomerge function
  • Added on-demand content loading via loadNoteContentFromIDB
  • Added 'Clear from Sync' button to UI
  • TypeScript compiles cleanly, build succeeds