codeburn/app/renderer/lib
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
..
budget.ts feat(app): daily budget alert (USD or token cap) 2026-07-16 03:16:07 -07:00
build.ts fix: hydration completeness markers, cold-only splash, honest switching, prefetch 2026-07-16 14:05:11 -07:00
chartAxis.test.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
chartAxis.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
cohortStats.test.ts Wire cohort samples to the real drill-through, scope and serve the new flags 2026-09-12 14:02:01 -07:00
cohortStats.ts Add Compare cohorts mode with population disclosure, samples, and volume band 2026-09-12 14:01:29 -07:00
format.test.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
format.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
generation.test.ts desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
generation.ts desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
investigation.test.ts fix(app): key investigation chips by identity, not by their label 2026-09-13 06:41:04 -07:00
investigation.ts fix(app): key investigation chips by identity, not by their label 2026-09-13 06:41:04 -07:00
ipc.ts fix(app): no-output watchdog replaces fixed timeouts; graceful kills; cold floor everywhere; orphan serve reaping 2026-08-22 09:22:38 -07:00
menubarProviders.test.ts desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
menubarProviders.ts feat(devin): plan and quota from the Devin CLI cache (#1606) 2026-10-02 16:43:15 +02:00
modelSeries.test.ts Classify GLM-5.3 and Flash spend tiers (#1598) 2026-10-02 10:47:05 +02:00
modelSeries.ts Classify GLM-5.3 and Flash spend tiers (#1598) 2026-10-02 10:47:05 +02:00
motion.test.tsx Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
motion.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
navHistory.test.ts Add the drill-through investigation state, selection math, and session drawer 2026-09-12 12:22:19 -07:00
navHistory.ts Add the drill-through investigation state, selection math, and session drawer 2026-09-12 12:22:19 -07:00
overviewSnapshot.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
overviewSnapshot.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
pageVisibility.test.ts fix(app): zero background work when hidden; currency applies instantly 2026-07-16 18:41:28 -07:00
pageVisibility.ts fix(app): zero background work when hidden; currency applies instantly 2026-07-16 18:41:28 -07:00
period.test.ts app,dash: render pre-history days as no data, not a currency zero (#765) 2026-07-20 08:03:24 -07:00
period.ts desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
platform.ts feat(app): Plugins says what it is doing on Windows 2026-09-02 07:03:23 -07:00
projectGroups.test.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
projectGroups.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
projectMatch.ts test(app): move the project-match parity test to the CLI suite 2026-09-12 05:38:52 -07:00
providers.test.ts 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
providers.ts 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
refreshCadence.test.ts fix(app): zero background work when hidden; currency applies instantly 2026-07-16 18:41:28 -07:00
refreshCadence.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
reportMemoKey.test.ts perf(desktop): keep every destination useful across restarts (#1163) 2026-08-28 14:51:18 -07:00
reportMemoKey.ts perf(desktop): keep every destination useful across restarts (#1163) 2026-08-28 14:51:18 -07:00
session-count-label.ts desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
spark.test.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
spark.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
streak.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
testMatchMedia.ts polish(app): consistency review nits 2026-07-16 05:11:10 -07:00
toast.ts feat(app): motion layer (gsap) — count-ups, chart grow-in, section fade, skeletons, toasts 2026-07-16 04:39:09 -07:00
track.ts feat(app): send the CLI's telemetry snapshot and a few interaction events 2026-09-03 01:18:23 -07:00
types.ts feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00