Skip to content

Keep the iCloud link when resuming fails for another reason - #302

Merged
parawanderer merged 1 commit into
mainfrom
fix/resume-keeps-the-link-on-weather
Nov 22, 2026
Merged

parawanderer merged 1 commit into
mainfrom
fix/resume-keeps-the-link-on-weather

Conversation

@parawanderer

Copy link
Copy Markdown
Owner

icloud_bridge.resume reported every failure as MEMBERSHIP_UNUSABLE. The fetch screen and AccountRefresher both forget the stored membership on that, so relinking needs a device passcode.

Now only failures of the membership itself get that reason. These go through _unexpected instead:

KeychainSessionError (how a removed peer arrives in the pinned FindMy) and anything unrecognised still mean MEMBERSHIP_UNUSABLE.

No Java change: both callers already handle the other reasons.

Tests: test_icloud_bridge.py +5 (one per kept case, plus the keychain refusal). With the new check disabled, those 4 and the closed-account test fail. Python suite: 351 passed.

To-do #9.

🤖 Generated with Claude Code

… link

icloud_bridge.resume reported every exception as MEMBERSHIP_UNUSABLE, and
both Java callers forget the stored membership on that, so a rejected
sign-in, an Apple 429/5xx or a dropped connection cost a device passcode
to link again. Those now go through _unexpected (sign in again, wait, or
retry). A KeychainSessionError, the shape a removed peer arrives in, and
anything unclassified keep MEMBERSHIP_UNUSABLE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@parawanderer
parawanderer merged commit 361b851 into main Nov 22, 2026
4 checks passed

This branch was previously deployed

1 inactive deployment
Android Build — 353c15b8 Deployed Nov 21, 2026 by parawanderer via build #396
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant