Repository navigation
ui: request persistent storage on startup - #31299
Merged
Merged
Conversation
Ask the browser to keep IndexedDB and localStorage data under storage pressure, so conversations and settings are less likely to be evicted. Assisted-by: Claude (Opus 5.5 Medium)
allozaur
marked this pull request as ready for review
October 28, 2026 07:52
allozaur
requested review from
ServeurpersoCom and
ggerganov
and removed request for
Copilot
October 28, 2026 07:52
ServeurpersoCom
approved these changes
Oct 28, 2026
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 30, 2026
Ask the browser to keep IndexedDB and localStorage data under storage pressure, so conversations and settings are less likely to be evicted. Assisted-by: Claude (Opus 5.5 Medium)
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.
Overview
Conversations and settings live in IndexedDB and localStorage, which browsers treat as best-effort storage and may evict under storage pressure (Safari also clears it for sites not visited recently). The UI now calls
navigator.storage.persist()once on startup, skipping it when storage is already persistent, so the browser keeps this data unless the user clears it.Chromium grants or denies silently based on site engagement and PWA install, while Firefox shows a one-time permission prompt.
Requirements
Claude (Opus 5.5 Medium)