Skip to content

fix(sync): the status names what stays out of sync and a key state that stops personal sync - #4829

Merged
datlechin merged 8 commits into
mainfrom
fix/sync-status-refused-and-left-out
Dec 2, 2026
Merged

datlechin merged 8 commits into
mainfrom
fix/sync-status-refused-and-left-out

Conversation

@datlechin

@datlechin datlechin commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Core: SyncStatus.unsynced counts what stays out of sync in the personal and history scopes, by why, from the state file: changed on the server (fails its tag, moved or renamed), sent with keys the account replaced since, an older copy served again, one this version can't read, other, too large, refused. Held sealed copies are opened again to name the reason, so the state file format stays. Waits and Team Library rows are not counted; the open names no reason until the first pass.
  • Core: the CloudKit engine counts records its store refused or this build can't read.
  • Mac: Settings > Sync reads the key state. A Mac left out of a key change reads Needs Approval Again with Approve This Mac… and Use Recovery Key…; Waiting for Approval, Recovery Key Needed, Removed from Your Account and Keys Couldn't Be Restored likewise.
  • Mac: Some Changes Not Synced takes the place of Up to Date, one line per reason, then who to tell: a company server's administrator; on tablepro.app, security@tablepro.app for a copy changed on the server, an older copy sent again or one sent with replaced keys, and hello@tablepro.app for the rest. Check for Updates… where an update helps. On iCloud too, where sync.adapter.unreadable no longer reads Sync Failed.
  • Mac: the Welcome window names a TablePro Sync key state that stops personal sync. iCloud's Last synced is the last pass that got through.
  • Windows: the status card shows Some changes not synced with the same lines, a lock by what it leaves this computer, and Approve this computer… / Use recovery key… / Set up…. A pass that failed for good reads Sync is unavailable, never Up to date. Last synced is the kept time. Decision 0029 updated.
  • Tests changed on purpose: SyncProviderCoordinatorTests.listenerRefreshesStatus (a failed pass no longer moves Last synced), SyncPaneTests.AnUpToDatePcShowsWhenItLastSyncedAndSyncNow (reads the kept last sync).

Test plan

  • Core: sealed::the_status_counts_each_refused_copy_by_why_after_the_pass_the_next_and_a_launch, an_older_copy_counts_until_the_write_back_lands_and_a_store_refusal_counts_as_unreadable, a_change_over_the_record_limit_counts_and_waits_team_rows_and_passing_refusals_do_not, CloudKit a_pass_that_holds_a_value_the_store_refused_says_so, sync-host what_stays_unsynced_is_the_personal_provider_s.
  • Mac: SyncPaneLayoutTests (refused copies, who each cause goes to, waiting values first, each lock and its actions, Welcome blocker), ProviderMovesTests (key signal, a failed read, a service that opens late), SyncProviderCoordinatorTests.
  • Windows: SyncPaneTests (a failed pass at rest, not synced, lock actions, last sync), LocalizationTests.
  • ADR 0114 rig, Debug build: na holds the row the server renamed in check 4c and reads 1 item changed on the server; nb, left out of a Replace Recovery Key, reads Needs Approval Again and is approved again from Approve This Mac….
Before After
Copies refused, light
Copies refused, dark
Left out of a key change, light
Left out of a key change, dark

@datlechin
datlechin merged commit b36d61c into main Dec 2, 2026
34 of 35 checks passed
@datlechin
datlechin deleted the fix/sync-status-refused-and-left-out branch December 2, 2026 07:18
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