codeburn/mac/Sources/CodeBurnMenubar
Resham Joshi 04d0b65327
feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638)
* feat(cursor): show the cursor.com sync in the apps, with an off switch

status --format menubar-json gains an additive cursorSync block (enabled,
state, lastSuccessAt, and a fixed errorCode/error on failure), read from
the sync sidecar, the config and the Cursor app's login. It never syncs,
never makes a request and never carries the token, the account hash or
server text. It is absent when Cursor is not signed in and has never
synced, and it is attached after the snapshot and per-device payloads.

With the Cursor provider selected, the desktop overview, the macOS menu
bar and the Windows tray show one line under the total: "Synced from
cursor.com 12 min ago", or the error in a muted warning colour. A
"Sync Cursor usage from cursor.com" switch writes config cursorSync:
Settings > Providers > Cursor on the desktop, the Cursor settings pane
on macOS and Windows. Desktop and mac strings are in all six locales;
the tray stays English until its localization lands.

* fix(cursor): guard config writes, show the env override in the switches

The tray's shared config writer now refuses to write over a config.json
that does not parse or is not an object (it used to replace it with an
empty map plus the one key), which also protects the currency, budget
and Claude config directory writers. The desktop writer rejects null
and array configs the same way.

With CODEBURN_CURSOR_SYNC=0 set, the desktop, mac and tray switches show
"Turned off by CODEBURN_CURSOR_SYNC=0" and are disabled. A failed mac
save now says so under the switch. The tray hero note uses the warning
ink and maps errorCode to its own messages.
2026-10-05 17:11:41 +02:00
..
Data feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
Resources feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
Security fix: stop a stuck cursor, pick the right Claude session file, skip the Kimi blob walk 2026-09-14 03:42:39 -07:00
Theme fix(menubar): make the quota warning legible and name the window it means 2026-09-13 06:29:21 -07:00
Views feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
AppStore.swift chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
AppVersion.swift Normalize menubar version display 2026-05-11 11:21:39 -07:00
CapacityDockController.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
CapacityDockMotion.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CapacityDockPlacement.swift fix(menubar): keep Capacity Dock hover alive after app deactivation (#1170) 2026-08-29 18:42:27 +02:00
CapacityDockPointerUpdateCoalescer.swift Fix Capacity Dock pointer coalescing and dismissal 2026-09-01 16:51:00 +05:30
CodeBurnApp.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
CurrencyState.swift devin: price sessions from tokens, drop the ACU rate (#1469) 2026-09-17 16:57:30 +02:00
Localization.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
MenubarRemoteCommand.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
MenubarScope.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
MenubarSecondRow.swift desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
ProviderIcon.swift Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02:00
QuotaRefreshDecision.swift Force a quota refresh when a window rolls over 2026-09-13 13:49:46 -07:00
RefreshCadence.swift menubar: skip unchanged background refreshes, 120s AC idle cadence, utility QoS for tick spawns (#703) (#704) 2026-07-16 15:11:25 -07:00
SessionCountLabel.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
SettingsWindowPlacement.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
SingleInstanceGuard.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
StatusItemContextMenuPolicy.swift test(mac): lock status-item context menu policy (#802) 2026-07-24 19:27:25 +07:00
StatusItemPlacementPolicy.swift menubar: keep retrying parked status item on a persistent menu bar (#1461) 2026-09-16 18:46:13 +02:00