Skip to content

Tell Safari readers the library expires with disuse — WebKit deletes an unused site's storage after 7 days, and every durability sentence names only disk pressure or cleared data #252

Open

Description

@bencode

Problem

Safari deletes the library if the reader stops coming. WebKit caps script-writable storage — IndexedDB and localStorage together, which is exactly where every project, file, conversation, memory note and model key lives (tutorial/guide/Your data and models.md:9-11) — at seven days without a use of the site. A reader who finishes a paper, goes on a two-week holiday, and returns to Gamma Reader on Safari, iOS or macOS, finds an empty first visit: not disk pressure, not a cleared cache — the browser's own policy, applied to the whole site at once. Chrome and Firefox have no such clock.

Every sentence the product says about durability is wrong for this case. The View storage note offers one alternative: "Storage is not persistent; the browser may clear it under disk pressure" (ui-packages/web/src/features/projects/project-storage-dialog.tsx:21-24) — disk pressure is not the mechanism, and a reader who rules it out ("my phone has space") rules out the real risk. The data chapter warns only about reader-initiated loss: clearing site data, private windows (Your data and models.md:11). Nothing anywhere names the seven-day clock, on the browser family where iPhone support is otherwise explicit (#236, #187, #202).

The product already touches every joint this needs: persisted() is read and persist() requested when the reader first imports (ui-packages/web/src/features/resources/use-file-library.ts:113-118,133 — granted never on plain Safari, so every Safari reader sits in the un-persisted branch), and the codebase already tells Apple platforms apart (ui-packages/web/src/features/resources/pick-folder.ts:19-25, isAppleMobile). The maintainer's own #56 close note shows the hazard is known ("the installed app also gets storage separate from Safari"); the browser tab's version of that hazard is told to no one.

Proposal

Goal

After this, a Safari reader who opens View storage — or reads the Tutorial — learns that the library expires with disuse on their browser, before it does, and the durability note stops implying space is the only threat.

Verification

grep -qi '7 days' ui-packages/web/src/features/projects/project-storage-dialog.tsx
grep -qi '7 days' 'tutorial/guide/Your data and models.md'
pnpm check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 27, 2026
  2. bencode commented on Oct 27, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop, independent of the authoring session, under the maintainer's standing instruction.

    Evidence audit (against main@e8c930f): all four anchors confirmed.

    • ✅ project-storage-dialog.tsx:21-24 — the one durability sentence is exactly "Storage is not persistent; the browser may clear it under disk pressure"; no expiry/WebKit wording anywhere in the dialog.
    • ✅ tutorial/guide/Your data and models.md:9-11 — everything in IndexedDB + localStorage, and the only warnings are reader-initiated (cleared site data, private windows).
    • ✅ use-file-library.ts:113-118,133 — rememberPersistence requests requestPersistentStorage() exactly once, at first import.
    • ✅ pick-folder.ts:19-22 — isAppleMobile as cited.
    • ✅ Factually, WebKit's 7-day cap on script-writable storage (Safari ≥ 13.1, reset by any site use; home-screen installs exempt with separate storage) matches the claim; Chrome/Firefox have no such clock.

    Duplicate check: nothing overlapping in open or closed titles — #38 (closed) is the durability display this corrects, #176/#56/#236 are cited consistently.

    Sensor: lint ✓, verify ✗. Note the first Verification command fails vacuously on main ("No test files found" for src/features/projects) — it effectively requires the implementation to add a unit test there; fine as a close gate, just don't read today's red as partial progress.

    Verdict: valid, keep open. Two sharpening points before implementation:

    1. isAppleMobile covers iPhone/iPad only, but the title promises macOS Safari too. Detecting desktop WebKit (e.g. a UA check excluding Chrome/Edge, or gating on !persisted plus a WebKit test) is new code — the cited reuse alone won't reach a MacBook reader.
    2. Scope the sentence to the browser: a reader who installs to the Dock/home screen gets separate, exempt storage (Make Gamma Reader installable — a manifest, an icon, a standalone window #56 close note already knows this), so "Safari" unqualified would misdescribe that case.
  3. bencode commented on Nov 2, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit at d05b6b6 — the stalest review in the queue (15 commits since the first review @ e8c930f, none touching a cited file: git diff --stat e8c930f..HEAD over all four refs is empty). Valid, stays open; Verification block repaired (edit logged below).

  4. bencode commented on Nov 13, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit (third pass) @ d05b6b6 — HEAD still unchanged since 2026-10-28; valid, stays open; no edits.

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

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions