Skip to content

Fix menubar blocking system sleep and sync refresh timing#270

Merged
iamtoruk merged 1 commit intomainfrom
fix/menubar-sleep-and-refresh-sync
May 8, 2026
Merged

Fix menubar blocking system sleep and sync refresh timing#270
iamtoruk merged 1 commit intomainfrom
fix/menubar-sleep-and-refresh-sync

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

@iamtoruk iamtoruk commented May 8, 2026

Summary

  • Drop .userInitiated from the process activity so macOS can enter deep sleep while the menubar runs. The wake observer already re-syncs on resume.
  • Run all-provider and per-provider refreshes in parallel in the loop tick so tab strip costs and the detail view update together instead of the detail view lagging behind.

Test plan

  • Verify pmset -g assertions no longer shows PreventUserIdleSystemSleep for CodeBurnMenubar
  • Switch to a provider tab, confirm tab strip costs and detail view update at the same time on each 30s tick
  • Close lid, reopen, confirm data refreshes on wake

Drop .userInitiated from the process activity so macOS can enter
deep sleep while the menubar is running. The wake observer already
re-syncs on resume.

Run the all-provider and per-provider refreshes in parallel in the
loop tick so tab strip costs and the detail view update together
instead of the detail lagging behind by one CLI call.
@iamtoruk iamtoruk merged commit e22cd15 into main May 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant