Skip to content

MS resume (loadInProgress) throws when iCloud signed out — same gate class as #512 #515

Closed

Description

@wei18

Surfaced by the dual-model CR of #514 (Sonnet). Separate from #512's fix site.

Packages/MinesweeperKit/Sources/MinesweeperPersistence/MinesweeperSavedGameStore.swift ~L158:

guard let payload = try await gateway.fetch(recordName: recordName) else { return nil }

This gateway.fetch propagates CKError.notAuthenticated on iCloud-out, so the Minesweeper resume flow (Home Resume pill → loadInProgress) can throw/dead-end when signed out. MS initial board load is fine (verified offline-playable in the #512 audit) — this is specifically the resume-saved-board path.

MS uses a different load shape than Sudoku (caller holds recordName from latestInProgress, then loadInProgress), so #512's fix can't be mechanically mirrored. Treat a fetch failure here as "no resumable game" (return nil) rather than throwing, so the Home/resume UI degrades gracefully offline.

Not a #512 blocker; follow-up. Note: #514's PR description should not claim full MS parity was restored.

Activity

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

    @wei18
    OwnerAuthor

    Fixed by #532 — iCloud-signed-out fetch maps to nil in loadInProgress/latestInProgress; schema/decode errors still propagate (#463 contract preserved).

  3. added a commit that references this issue on Jun 16, 2026
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