codeburn/mac/Sources/CodeBurnMenubar/Data
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
..
AntigravityQuotaPresentation.swift feat(menubar): live Antigravity quota — local language-server probe, Settings pane, Plan tab 2026-08-24 09:40:04 -07:00
AntigravitySubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CapacityDockGlanceWindow.swift feat(menubar): switch the Capacity Dock gauge between usage windows 2026-09-12 06:38:34 -07:00
CapacityDockInteractionState.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CapacityDockPreferences.swift feat(quota): add ZCode (z.ai coding plan) live quota provider (#1347) 2026-09-18 18:11:08 -07:00
CapacityDockProviderCredential.swift fix(menubar): give the pasted Copilot token a GitHub host of its own 2026-09-12 12:02:13 -07:00
CapacityDockProviderQuotaService.swift feat(devin): plan and quota from the Devin CLI cache (#1606) 2026-10-02 16:43:15 +02:00
CapacityEstimator.swift
ClaudeCredentialStore.swift Claude plan label: read subscriptionType so a Team seat is not shown as Max 5x (#1492) 2026-09-19 11:25:17 -07:00
ClaudeSubscriptionService.swift Claude plan label: read subscriptionType so a Team seat is not shown as Max 5x (#1492) 2026-09-19 11:25:17 -07:00
CLIClaudeConfig.swift feat(menubar): configure CLAUDE_CONFIG_DIRS via Settings (#434) (#436) 2026-06-06 02:30:46 +02:00
CLICursorSyncConfig.swift feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
ClinePassSubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CLIWatchdog.swift fix(menubar): no-output watchdog, lock signal cleanup, dead-pid takeover, serve orphan reaping 2026-08-23 05:35:17 -07:00
CodeBurnCacheDirectory.swift perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
CodexBankedResets.swift fix(menubar): pin multi-argument catalog keys to positional specifiers 2026-09-15 01:33:28 +03:00
CodexCredentialStore.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CodexSubscriptionService.swift feat(codex): read the per-credit fields the reset-credits payload already carries 2026-09-12 14:37:24 -07:00
CodexUsage.swift menubar: early-reset notification for Codex (#1339) 2026-09-17 14:33:35 +02:00
CopilotExplicitDisconnect.swift fix(mac): preserve explicit Copilot disconnect across refreshes 2026-09-09 16:17:15 +05:30
CopilotHostEndpoint.swift fix(menubar): follow GH_HOST and gh's own host for the Copilot env and gh rungs 2026-09-12 12:02:13 -07:00
CopilotQuotaPresentation.swift fix(menubar): pin multi-argument catalog keys to positional specifiers 2026-09-15 01:33:28 +03:00
CopilotSubscriptionService.swift fix(menubar): follow GH_HOST and gh's own host for the Copilot env and gh rungs 2026-09-12 12:02:13 -07:00
CursorSubscriptionService.swift fix(cursor): connect Enterprise team seats on the team on-demand meter (#1553) 2026-09-25 01:33:41 +02:00
DataClient.swift fix(menubar): refresh(key:) reported failure instead of joining an in-flight fetch 2026-09-02 07:52:18 -07:00
DevinSubscriptionService.swift feat(devin): plan and quota from the Devin CLI cache (#1606) 2026-10-02 16:43:15 +02:00
EarlyQuotaReset.swift menubar: early-reset notification for Codex (#1339) 2026-09-17 14:33:35 +02:00
EarlyQuotaResetMonitor.swift menubar: drop the early-reset dock band and history caption (#1452) 2026-09-16 11:29:38 +02:00
GeminiQuotaPresentation.swift feat(menubar): live Gemini quota — service, Settings pane, popover Plan tab 2026-08-24 08:43:47 -07:00
GeminiSubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
GrokBotSubscriptionService.swift Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02:00
GrokBuildSubscriptionService.swift fix(mac): scope Grok's omitted-percent-is-zero rule to unified billing; finish the fixture scrub 2026-09-04 01:38:08 -07:00
KimiQuotaPresentation.swift fix(menubar): keep showing Kimi quota when the login is idle, stamp stale data 2026-07-26 06:35:13 -07:00
KimiSubscriptionService.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
LanguagePreference.swift desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
MenubarPayload.swift feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
MenubarStatusCache.swift perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
ProviderConnectionCatalog.swift feat(devin): plan and quota from the Devin CLI cache (#1606) 2026-10-02 16:43:15 +02:00
ProviderReconnectPresentation.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
ProviderStripPagingState.swift harden provider period and cache contracts 2026-09-02 16:18:05 +05:30
QuotaCrossing.swift fix(menubar): pin multi-argument catalog keys to positional specifiers 2026-09-15 01:33:28 +03:00
QuotaPace.swift menubar: linear pace on Codex quota windows — deficit/reserve, projection, run-out ETA (#726) (#728) 2026-07-20 05:21:43 -07:00
QuotaPacePresentation.swift fix(menubar): pin multi-argument catalog keys to positional specifiers 2026-09-15 01:33:28 +03:00
QuotaSummary.swift menubar: early-reset notification for Codex (#1339) 2026-09-17 14:33:35 +02:00
QuotaWarningPresentation.swift fix(menubar): pin multi-argument catalog keys to positional specifiers 2026-09-15 01:33:28 +03:00
ServeConnection.swift 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
SubscriptionRefreshCadence.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
SubscriptionSnapshotStore.swift perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
SubscriptionUsage.swift Claude plan label: read subscriptionType so a Team seat is not shown as Max 5x (#1492) 2026-09-19 11:25:17 -07:00
Telemetry.swift 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
UpdateChecker.swift fix(menubar): pick the CLI package manager from the resolved symlink (#1563) 2026-09-27 17:17:51 +02:00
UpdateNotifier.swift feat(mac): notify when an update is available 2026-09-10 12:39:38 -07:00
UsageDataChangeGuard.swift feat: Amp support - read the local thread mirror (#1572) (#1578) 2026-10-02 10:36:05 +02:00
UsageRefreshCadence.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
ZaiPlanQuotaDecoder.swift feat(quota): add ZCode (z.ai coding plan) live quota provider (#1347) 2026-09-18 18:11:08 -07:00
ZaiSubscriptionService.swift feat(quota): add ZCode (z.ai coding plan) live quota provider (#1347) 2026-09-18 18:11:08 -07:00
ZcodeSubscriptionService.swift feat(quota): add ZCode (z.ai coding plan) live quota provider (#1347) 2026-09-18 18:11:08 -07:00