Skip to content

Hybrid workspace persistence: move graph/session metadata to IndexedDB with localStorage fallback#383

Open
avinxshKD wants to merge 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/indexeddb-workspace-persistence
Open

Hybrid workspace persistence: move graph/session metadata to IndexedDB with localStorage fallback#383
avinxshKD wants to merge 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/indexeddb-workspace-persistence

Conversation

@avinxshKD
Copy link
Copy Markdown

@avinxshKD avinxshKD commented Apr 3, 2026

Fixes #377
This switches workspace persistence to a hybrid approach, keep file/binary handling as-is, but store graph/session metadata in IndexedDB.

In this pr

  • IndexedDB storage for graph + session metadata
  • migrate existing localStorage metadata on first init
  • restore open tabs + active tab on reload
  • skip bad/corrupted records instead of failing workspace load
  • keep localStorage fallback if IndexedDB is unavailable
  • focused tests + dev guide notes

Checked

  • npm run build passes
  • npm test -- --watch=false src/graph-builder/local-storage-manager.test.js passes
image image

@avinxshKD
Copy link
Copy Markdown
Author

avinxshKD commented Apr 3, 2026

Hey @pradeeban pls take a look. Thanks again for the earlier Niffler 2020 context, kept this minimal and focused on persistence + restore paths.

lmk If need any changes :p

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant