You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Daily Hub spins forever when iCloud signed out (no local fallback) — same gate class as #512/#515 #526
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:
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
Simulator with no iCloud account (default)
Launch Sudoku (current main Debug build) → tap Daily
Observe infinite spinner, no cards
Evidence: screenshots + unified-log excerpt captured in the audit session.
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.
Activity
wei18 commentedon Jun 16, 2026
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.
test(daily-hub): split offline tests into own file to satisfy file_le…
fix(minesweeper): graceful offline degrade for Daily Hub + resume (#530
docs(test-plans): refresh Phase 3 progress — 14 pass / 1 fail / 28 pe…
test(gameshellui): pin performDailyBootstrap two-phase contract (#558 …
refactor(gameshellui): extract shared two-phase daily-load skeleton (#…
fix(daily-hub): re-verify daily status at board open, gate taps durin…