codeburn/mac/Sources/CodeBurnMenubar
iamtoruk 6ed0799b36 fix(menubar): opt out of App Nap so the refresh loop keeps ticking
Confirmed in the system log: while the menubar icon sits idle in the
background, macOS flips _kLSApplicationWouldBeTerminatedByTALKey to 1,
which is the Automatic Termination and App Nap subsystem declaring the
app a suspend candidate. Once that happens the 15s refresh Task's sleep
stretches arbitrarily, so the status bar label freezes until the user
clicks the icon (which triggers NSApp.activate and wakes everything up).

Hold a ProcessInfo.beginActivity handle for the life of the app with
.userInitiated + .automaticTerminationDisabled + .suddenTerminationDisabled
so macOS leaves the app alone. Released implicitly when the app exits.
2026-04-21 13:05:56 -07:00
..
Data fix(menubar): use numeric version comparison for update check 2026-04-21 04:20:42 -07:00
Security fix(menubar): force status bar redraw and lift subprocess QoS 2026-04-21 11:50:28 -07:00
Theme feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
Views fix(menubar): prefetch periods and align dashboard dates with local timezone 2026-04-21 04:22:10 -07:00
AppStore.swift fix(menubar): drop prefetchAll to keep Today label fresh 2026-04-21 07:36:00 -07:00
CodeBurnApp.swift fix(menubar): opt out of App Nap so the refresh loop keeps ticking 2026-04-21 13:05:56 -07:00
CurrencyState.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00