Describe the bug
When the socket disconnects, we save edits to localStorage. When it reconnects, we replay them if our versions are still up to date. If the version isn't up to date, we currently leave them in localStorage forever. localStorage is limited in how much you can store depending on browser. When it fills up, this mechanism may fail.
To Reproduce
Steps to reproduce the behavior:
Open a notebook you can edit.
In devtools or similar, go offline.
Make some edits.
In another tab or browser, make other edits to increase the version.
Come back online.
In devtools, check localStorage contents and see a notebook-next-* entries
Expected behavior
Very old or highly unlikely items can be safely deleted or garbage collected at some point.
Describe the bug When the socket disconnects, we save edits to localStorage. When it reconnects, we replay them if our versions are still up to date. If the version isn't up to date, we currently leave them in localStorage forever. localStorage is limited in how much you can store depending on browser. When it fills up, this mechanism may fail.
To Reproduce Steps to reproduce the behavior:
Expected behavior Very old or highly unlikely items can be safely deleted or garbage collected at some point.
Screenshots