Commit b7c4dcb
fix: clear stale Development CloudKit state on first Production run
Mac (CloudKitPusher):
- On first launch with icloud-container-environment=Production, wipe
ServerRecordCache and engine state persisted from v2.4.3 which used
Development CloudKit. Development recordChangeTags embedded as base
records caused 'server record changed' errors in Production, silently
preventing MacStatus/AgentConfig from ever reaching the server.
- Keyed by 'doomcoder.ckpusher.environment.v1' — future env changes
also trigger the wipe automatically.
iOS (CompanionSyncEngine):
- Same migration: clear engine state, serverRecords, and MacStatusStore
(cached entries from Development fetches) on first Production run.
Keyed by 'ck.ios.environment.v1'.
- After the wipe, the engine does a fresh fetch from the Production zone
and properly receives the Mac's MacStatus record.
iOS version: 2.4.1 → 2.4.2 (build 3) — TestFlight submission.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 23da213 commit b7c4dcb
3 files changed
Lines changed: 37 additions & 4 deletions
File tree
- DoomCoderCompanion
- DoomCoderCompanion.xcodeproj
- DoomCoderCompanion/Sync
- DoomCoder/AgentTracking
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
145 | 163 | | |
146 | 164 | | |
147 | 165 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
128 | 143 | | |
129 | 144 | | |
130 | 145 | | |
| |||
0 commit comments