Skip to content

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

Closed

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.

Activity

  1. avinxshKD commented on Feb 25, 2026

    @avinxshKD
    Author

    Hey @pradeeban reproduced on main
    Plan is to re-enable session restore in GraphWorkspace and clean up localStorageManager so graph IDs come from a single source of truth (no in-memory/storage drift). I’ll include guards for stale/corrupt entries and duplicate IDs so reload behavior is deterministic.

    I can also include a regression test for reload/restore path.
    Do you have any suggestions? would love to know

  2. pradeeban commented on Mar 1, 2026

    @pradeeban
    Member

    Sounds good.

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

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