You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Opt-in iCloud sync for settings, providers, and usage snapshots (#2597)
* feat: opt-in iCloud sync for settings, providers, and usage snapshots
CloudKit (CKSyncEngine, private DB, zone CodexBarSync) syncs provider
configuration, a curated preferences subset, and per-device account/usage
snapshots across Macs. Secrets ride E2E-encrypted record fields with their
own opt-out; hooks and machine-local paths are structurally excluded from
sync payloads. Off by default (Settings -> iCloud Sync). Release packaging
now embeds a Developer ID provisioning profile authorizing the iCloud
entitlements; config.json gains a file watcher so external CLI edits apply
live. Includes fleet menu rows ("via <Mac> - 1h ago") backed by snapshots
and a schema deploy script (Scripts/cloudkit/deploy_schema.sh).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix: harden CloudKit sync engine per adversarial review
Verified against Apple's CKSyncEngine sample/docs: secret-free 0600 state
persistence, stale-pending drain, auto-sizing batches, error-embedded server
record conflicts, zoneNotFound recovery, account-change/sign-in restart,
capped quota backoff, unscoped first fetch. Distributed-behavior fixes:
enable-intent echo suppression (CLI-less Mac no longer reverts fleet-wide
enables), device-scoped snapshot records, apply-side secrets opt-out,
newer-schema conflict pause, fleet cache rehydration, pre-enable secrets
opt-out UI, Bash 3.2-safe deploy script.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Peter Steinberger <steipete@mac-studio-sf2.local>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
## 0.46.1 — Unreleased
4
4
5
5
### Added
6
+
- Sync: opt-in iCloud sync (Settings → iCloud Sync, default off) syncs provider configuration, a curated preferences subset, and per-device usage snapshots across Macs via CloudKit; API keys/cookies/tokens ride end-to-end-encrypted fields with their own opt-out, hooks and machine-local paths never sync, and menus can show accounts from other Macs with last-known usage ("via <Mac> · 1h ago") when the local fetch is unavailable. The app now also watches `config.json`, so external CLI edits apply live.
6
7
- z.ai: add 7-day and 30-day model-usage chart ranges with dataset-consistent legends, colors, and daily tooltips (#2524). Thanks @LeoLin990405!
7
8
- Refresh: add a default-off global Low Power Mode that limits automatic provider, local usage, and storage work to once every 30 minutes while keeping manual refresh immediate (#2518). Thanks @Carl723000!
8
9
- CLI: `codexbar hooks watch` continuously polls providers and fires hooks on real quota/status transitions for headless installs, with in-memory baselines, event rate limits, `--interval` (default 300s, minimum 60s), `--provider`, and JSON output (#2536). Thanks @OfficialAbhinavSingh!
0 commit comments