fix(sync): initialMerge sends completedAt and pulls the server state after its push #158

Merged
maximus merged 1 commit from issue-150-merge-completed-pull into master 2026-10-25 01:22:14 +00:00

1 commit

Author SHA1 Message Date
le king fu
ef1c58321e fix(sync): initialMerge sends completedAt and pulls the server state after its push
initialMerge now builds its task data with mergeTaskData (syncRules.ts),
which adds completedAt in ISO when the task has one. After remapping the
local Inbox, it sets lastSyncAt to SYNC_EPOCH and pulls the whole account,
so the merging device receives the other devices' data and the server side
effects of the merge (archived Inbox, moved tasks). A failed pull leaves
lastSyncAt at SYNC_EPOCH and the next fullSync retries it.

Refs #150

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 17:15:59 -04:00