Skip to content

Say why nothing opens — a first visit in a browser that blocks site data meets only 'Projects could not be opened in this browser', and its one link loops back to the same screen #180

Closed as not planned

Description

@bencode

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 localStorage probe) 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 check

Refs

Activity

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

    @bencode
    OwnerAuthor

    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:scheduled proposals.

    Evidence audit (against main@ebb0ee0): every citation confirmed, most to the exact line.

    Feasibility note the proposal can lean on: openRegistry already 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.tsx
  3. bencode commented on Oct 24, 2026

    @bencode
    OwnerAuthor

    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 in shell/+data/+workspace paths since the review, but none touches shell/project-root.tsx, data/project-store.ts or resource-panel.tsx (they are the conversation/tab features).

    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.

  4. bencode commented on Oct 26, 2026

    @bencode
    OwnerAuthor

    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.

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