Skip to content

every browser reload wipes all open tabs... session restore has been commented out #348

@avinxshKD

Description

@avinxshKD

The useEffect in GraphWorkspace.jsx that restores graphs from localStorage on mount is fully commented out. Comment even says "currently on hold". So every refresh = blank canvas, all your tabs gone.

The annoying part is localStorageManager is already doing its job nd it saves every graph on change. The data is there, it's just never read back on reload.

There's also a secondary bug in local-storage-manager.js: allgs is a module-level Set initialized once at import time, but getAllGraphs() reads fresh from localStorage independently. These diverge after any restart so you can end up with inconsistent state about which graphs are "known."

Needs the mount effect uncommented and rewritten properly, the in-memory Set removed in favor of a single localStorage source of truth, and some basic handling for stale/corrupt entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions