Skip to content

Daily Hub spins forever when iCloud signed out (no local fallback) — same gate class as #512/#515 #526

Closed

Description

@wei18

Found during Phase 3 interactive sim audit (idb) on a current main Debug build (post-#512/#514) — iPhone 17 Pro simulator with no iCloud account.

Symptom

Home → Daily → the Daily Hub shows the「Daily」title + back button, then an infinite loading spinner. No difficulty cards ever appear (still spinning after 14s). a11y tree = 4 elements (Application, back button, Daily heading) — zero cards. User cannot start a daily puzzle when signed out of iCloud.

Root cause (from unified log)

The hub issues a CloudKit CKQueryOperation (and CKFetchRecords) on the Private DB which fail with:

CKUnderlyingError "NoAccountExists" (1002); "This request requires an authenticated account"
Telemetry errorOccurred source=GameRootViewModel.bootstrap.persistence code=iCloudSignedOut

GameRootViewModel.bootstrap correctly funnels the iCloud-signed-out error (#512 path works), but the Daily Hub view waits on the daily fetch and never renders local cards or an error/empty state when that fetch fails → permanent spinner.

Why it matters

Daily puzzles are date-deterministic and can be generated locally (same as the #512 Practice fix). Listing/playing the daily must not gate on iCloud. This is the same gate class as #512 (Sudoku unplayable offline) and #515 (MS resume throws when iCloud signed out) — the Daily Hub surface was not covered by the #512 fix.

Expected

Daily Hub renders the three difficulty cards from local daily generation even with no iCloud account; completion state degrades to unknown/「—」rather than blocking the whole hub on a spinner. Check Minesweeper Daily Hub for the same defect.

Repro

  1. Simulator with no iCloud account (default)
  2. Launch Sudoku (current main Debug build) → tap Daily
  3. Observe infinite spinner, no cards

Evidence: screenshots + unified-log excerpt captured in the audit session.

Activity

  1. added
    bug
    on Jun 16, 2026
  2. wei18 commented on Jun 16, 2026

    @wei18
    OwnerAuthor

    Minesweeper Daily Hub is the correct reference (mirror principle). Same no-iCloud simulator, same session: MS Home → Daily renders three cards immediately —「Beginner, —」「Intermediate, —」「Expert, —」(completion degraded to「—」, hub fully usable). Sudoku Daily Hub under identical conditions spins forever with zero cards.

    So the fix is bounded: make SudokuDailyHub degrade like MinesweeperDailyHub already does (render local daily cards + unknown completion when the CloudKit completion fetch returns NoAccountExists, instead of awaiting it). MS is the working shape to copy.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions