1.2 KiB
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 |
|
high |
Description
The Obsidian vault browser is storing full note content in Automerge, causing capacity overflow errors and localStorage quota exceeded errors. Need to:
- Store only metadata in Automerge (id, title, tags, links, paths)
- Store full content in IndexedDB separately
- Clear existing vault data from Automerge for privacy
- 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