Repository navigation
Description
Problem
The very first storage touch of a first visit is opening the project registry: resolveProject → ensureTutorialProject → openRegistry (ui-packages/web/src/data/project-store.ts:41-57). In a browser that blocks site data — Safari with "Block All Cookies", Chrome with cookies blocked — indexedDB.open rejects outright (SecurityError), so on their very first visit such a reader never reaches the workbench. What they get is the boot error (ui-packages/web/src/shell/project-root.tsx:129-138): one line, "Projects could not be opened in this browser.", and a single link, "Return to your projects" (:153-159) — whose href="/" runs resolveProject again and lands on the same screen. No cause, no remedy, and the one offered action is a loop.
"In this browser" also misleads: it reads as a permanent incapability of the browser, when the actual cause is a setting the reader can change in seconds (allow cookies / site data for this site). The product explains its storage everywhere else — the Files panel names its failure and offers Try again (ui-packages/web/src/features/resources/resource-panel.tsx:300-306), source sync names the source and offers Update (ui-packages/web/src/features/source/use-source-sync.ts:89-96), and eviction risk got #38 — but the boot screen, the first surface a blocked reader ever sees, is the one failure state that says nothing actionable.
Proposal
- When the registry open fails, tell the reader what happened and what to do — e.g. "This browser is blocking the storage Gamma Reader keeps your documents in. Allow cookies and site data for this site, then try again." Keep the current generic line for failures that are not the blocked case.
- Detect the blocked case where the platform allows it (a SecurityError from the open, or a
localStorageprobe) so the specific copy is earned, not speculative. - Replace the loop for this case: "Try again" re-runs the open (and succeeds once the reader changes the setting); "Return to your projects" stays only where it makes sense, i.e. the deletion-failure variant of this same screen.
Goal
After this, a reader whose browser blocks site data lands, on their first visit, on a screen that names the cause, names the remedy, and offers a retry that can succeed — instead of a one-line dead end whose only link returns to itself.
Verification
grep -qi 'site data\|cookies' ui-packages/web/src/shell/project-root.tsx
pnpm --filter @gamma-reader/web test
pnpm checkRefs
ui-packages/web/src/shell/project-root.tsx:104-110, 129-138, 153-159— the failing open and the dead-end error screenui-packages/web/src/data/project-store.ts:41-57— the registry open is the first storage a first visit touchesui-packages/web/src/features/resources/resource-panel.tsx:300-306— the in-app precedent: a storage failure that names itself and offers a retry- Show storage durability and pressure before the browser can evict the reader's library #38 — the same storage-trust family at the eviction end; this is the refused-at-boot end
- No-key chat is a dead end — the only 'Add your own model…' entry hides exactly when no model exists #159 — the same dead-end shape at another entry: the escape hatch that is missing exactly when it is needed
- Teach import paths and assistant capabilities at the empty states, not only in the README #39 — not a revival of it: no teaching copy on healthy empty states is proposed here; this is the honesty of an existing failure screen
Activity
bencode commentedon Oct 22, 2026
Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire
source:scheduledproposals.Evidence audit (against
main@ebb0ee0): every citation confirmed, most to the exact line.resolveProject(project-root.tsx:42) →ensureTutorialProject(project-store.ts:93) →openRegistry(project-store.ts:41-57, the cited range, exact:openDBwith the first-visit tutorial write in the upgrade). One anchoring nit: the first hop lives inproject-root.tsx, not in the citedproject-store.tsrange — chain correct, citation pins only the last hop.'Projects could not be opened in this browser.'atproject-root.tsx:136-137(deletion failures keeperror.message), and the error screen's only action is<a href="/">Return to your projects</a>(:158) — which re-runsresolveProjectand lands on the same screen. The loop claim holds exactly.resource-panel.tsx:300-306showslibrary.error+ "Try again";use-source-sync.ts:89-96is the name-and-retry failure helper.Feasibility note the proposal can lean on:
openRegistryalready clears its memoized promise on failure (project-store.ts:47-49), so a plain "Try again" re-running the open is a genuine retry — no poisoned-cache work needed.Sensor: lint ✓, verify ✗ → not implemented on main; stays open.
Verdict: valid, keep open. The failure screen is the first surface a blocked reader ever sees, and the asymmetry claim (every other storage failure in the app names itself and offers an action) is verified.
One anchor sharpening before implementation (the #41/#55 lesson): the grep pins the remedy copy to two words — an implementation phrasing it "allow storage access for this site" meets the Goal but refuses the gate. Any honest remedy copy almost surely names the thing being allowed:
grep -qiE 'site data|cookies|storage' ui-packages/web/src/shell/project-root.tsxbencode commentedon Oct 24, 2026
Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. (Signal check: marker-only comments, no reactions, no assignee.)
Delta since last review (
ebb0ee0→90b046f): three commits landed inshell/+data/+workspace paths since the review, but none touchesshell/project-root.tsx,data/project-store.tsorresource-panel.tsx(they are the conversation/tab features).90b046f:openRegistrywith the failure-side memo clear atproject-store.ts:41-57(the "Try again is a genuine retry" feasibility note still holds); the generic fallback'Projects could not be opened in this browser.'and thehref="/"loop atproject-root.tsx:129-138, 153-158— unchanged.Verdict: still valid, keep open; no action. The prior review's broadened anchor (
grep -qiE 'site data|cookies|storage' ui-packages/web/src/shell/project-root.tsx) remains the honest gate for the remedy copy.bencode commentedon Oct 26, 2026
Closing as not planned. A browser that blocks all site data is a rare setup, and the fix is outside the app.
Allow cookies and site data for this site in the browser's settings, then reload.