Repository navigation
Description
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
- In View storage, when storage is not persistent and the browser is WebKit, say the true sentence: "Safari deletes a site's stored data after 7 days without a visit." Keep the disk-pressure sentence for the rest.
- Name the honest remedies in place: on iOS the way out is Save as… per file, a writable source, or another browser (Save to folder is unavailable there, Say why Save to folder is greyed out — on Safari and iOS the control is disabled, and its only explanation is a hover tooltip touch screens never show #176) — the same restraint the delete dialog already practices (Say at project deletion what the rescue saves — the dialog counts attachments among the files it deletes, while Save to folder first writes only the Files tree #183, Say at project deletion that its memory notes go too — the dialog counts files, attachments and conversations, while the notes the reader asked the assistant to keep leave uncounted #248): name what goes, name what saves it.
- Add one sentence to the data chapter's "Where your files live" so the Tutorial teaches it too.
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 checkRefs
- ui-packages/web/src/features/projects/project-storage-dialog.tsx:21-24 — the one durability sentence, naming only disk pressure
- tutorial/guide/Your data and models.md:9-11 — where everything lives, and the only warnings are reader-initiated
- ui-packages/web/src/features/resources/use-file-library.ts:113-118 — persist() asked at first import; Safari's answer is always no
- ui-packages/web/src/features/resources/pick-folder.ts:19-25 — the Apple-platform detection this would reuse
- Show storage durability and pressure before the browser can evict the reader's library #38 — the durability display this corrects for WebKit
- Make Gamma Reader installable — a manifest, an icon, a standalone window #56 — closed not planned; its close note names the iOS storage split, the awareness this issue turns into a sentence
- Say why Save to folder is greyed out — on Safari and iOS the control is disabled, and its only explanation is a hover tooltip touch screens never show #176, Let Save to folder write chat attachments out with the files — today each one leaves only one by one, through Save as… #225 — the iOS export limits that shape which remedies can honestly be named
- Say why Add folder is missing on iPhone and iPad — today the menu entry vanishes without a word, while the Tutorial tells every reader folders come in #236 — the iPhone support that makes Safari a first-class reader
Activity
bencode commentedon Oct 27, 2026
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—rememberPersistencerequestsrequestPersistentStorage()exactly once, at first import.pick-folder.ts:19-22—isAppleMobileas cited.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:
isAppleMobilecovers iPhone/iPad only, but the title promises macOS Safari too. Detecting desktop WebKit (e.g. a UA check excluding Chrome/Edge, or gating on!persistedplus a WebKit test) is new code — the cited reuse alone won't reach a MacBook reader.bencode commentedon Nov 2, 2026
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..HEADover all four refs is empty). Valid, stays open; Verification block repaired (edit logged below).project-storage-dialog.tsx:21-24still carries the one durability sentence verbatim ("Storage is not persistent; the browser may clear it under disk pressure"); the guide (repo-roottutorial/guide/Your data and models.md:9-11) still describes IndexedDB + localStorage with only reader-initiated warnings;use-file-library.ts:113-118still gates onerequestPersistentStorage()behindpersistRequested, called at:133;pick-folder.ts:19-22still hasisAppleMobile. Repo-wide, no "7 days"/"seven days" wording exists inui-packages/web/srcortutorial/— the sentence is genuinely absent.pnpm --filter @gamma-reader/web test src/features/projects) is permanently red: no unit test file exists underfeatures/projects— vitest exits 1 "No test files found" before any test runs, so the gate could never pass, even after a complete implementation (a never-verify gate; the inverse of Let a key change in one tab reach the others — a tab that missed it keeps sending a deleted key, and never lists an added model, until reload #292's false-verify). Replaced only the Verification block with two greps requiring the 7-day sentence on both surfaces the Proposal names (dialog + guide), pluspnpm check(green on main today). First draft joined them with&&; that falsely passed — the runner executes the block underset -e, which exempts a left-side&&failure — rewritten one command per line. After the edit: lint ✓; verify ✗ on main ✓ (red for the right reason). Theset -e/&&interaction is a hazard for every future block this loop writes: one command per line, no&&compounds.e8c930f): clean. Closed Show storage durability and pressure before the browser can evict the reader's library #38 is the durability display this corrects (cited), Say why Save to folder is greyed out — on Safari and iOS the control is disabled, and its only explanation is a hover tooltip touch screens never show #176 the iOS export limit (cited), Persist the exchange while it happens — a crash or phone tab-kill mid-answer loses the question and the partial reply, leaving a titled conversation that opens empty #197 conversation persistence — none overlaps; nothing new.bencode commentedon Nov 13, 2026
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.project-storage-dialog.tsx:21-24("Storage is not persistent; the browser may clear it under disk pressure"); the guide (tutorial/guide/Your data and models.md:9-11) still names IndexedDB + localStorage with only reader-initiated warnings;rememberPersistencestill gates onerequestPersistentStorage()(use-file-library.ts:113-118, called at:133);isAppleMobileatpick-folder.ts:19-22. Repo-wide, no "7 days"/"seven days" wording inui-packages/web/srcortutorial/— the sentence is genuinely absent.isAppleMobile; scope the sentence to the browser tab (installed apps get separate, exempt storage per Make Gamma Reader installable — a manifest, an icon, a standalone window #56's close note).