Repository navigation
fix(editor): say when the session cannot be saved - #669
Merged
Merged
Conversation
Of everything the app keeps in localStorage, the open tabs are the one whose loss is most visible — and saving them was the one path that swallowed its failure. A user with a dozen tabs of unsaved SQL would restart and find them gone, with nothing at any point having said that saving had stopped working, while a failed theme or settings write has been reported in the status bar all along. The quota is around 5 MB and the tabs hold whatever has been typed or pasted into them, so it is reachable — one large dump in a tab. It now reports through the same store as the rest, and clears the warning when a write succeeds again: closing a tab can bring the session back under the quota, and a stale warning would say the opposite. +4 tests.
EVWorth
force-pushed
the
fix/session-save-reporting
branch
from
September 12, 2026 12:59
b4e1b5a to
990bfda
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From the full-project review. Stacked on #668.
Of everything the app keeps in
localStorage— theme, query settings, formatter settings, grid layouts, history preferences, open tabs — the open tabs are the one whose loss is most visible, and saving them was the one path that swallowed its failure:A user with a dozen tabs of unsaved SQL restarts and finds them gone, with nothing at any point having said that saving had stopped working — while a failed theme write has been reported in the status bar all along.
The quota is around 5 MB and the tabs hold whatever has been typed or pasted into them, so it is reachable with one large dump in a tab.
It reports through the same store as the rest now, and clears the warning when a write succeeds again — closing a tab can bring the session back under the quota, and a stale warning would say the opposite.
+4 tests, including that the app does not throw when storage is blocked altogether (private mode).