Commit 1da0a44
fix(storage): migrate history from legacy iCloud path on upgrade
Users upgrading from v0.5.4 had their history silently dropped because
the iCloud auto-detection was removed without a migration path. On first
launch, the local DB was empty while the old iCloud DB still had all
their data.
On macOS, when no sync replica is configured, open_and_migrate() now
checks the old iCloud auto-detected path and pulls from it if it has
newer data than the local DB. Uses the same try_pull_from_replica path
so the copy is atomic and idempotent.
Bump version to v0.5.6
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ba3fc42 commit 1da0a44
3 files changed
Lines changed: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
| |||
467 | 476 | | |
468 | 477 | | |
469 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
470 | 486 | | |
471 | 487 | | |
472 | 488 | | |
| |||
0 commit comments