Skip to content

Bug: menubar app has to be restarted to get current data #282

Closed

Description

@rdouma

I had it running fine since yesterday's fix of #273. In the morning it crossed over to a new day and seemed to work fine at first and went to sleep. Computer stays on, screens off. After getting back to my computer today I noticed the data was not updating, even though it should. Refresh button was grayed out. I quit and restarted and it came back with updated information.

Activity

  1. iamtoruk commented on May 9, 2026

    @iamtoruk
    Member

    Thanks for the detailed report -- this matches what we've been tracking.

    The root cause was the pipe I/O layer using a blocking read that couldn't be cancelled after sleep/wake. The child process would exit, but the read handle stayed pinned, leaving the loading state stuck permanently.

    We've pushed a fix on fix/menubar-loading-watchdog that replaces the blocking drain with non-blocking POSIX I/O, adds proper signal handling (EINTR from child exit), and a 60-second watchdog as a safety net. If you want to try it before we merge:

    git clone https://github.com/getagentseal/codeburn.git
    cd codeburn
    git checkout fix/menubar-loading-watchdog
    cd mac
    swift build -c release
    

    Then copy .build/release/CodeBurnMenubar into ~/Applications/CodeBurnMenubar.app/Contents/MacOS/ and relaunch.

    We're testing it for a day on our end. If everything holds up, it'll ship in the next release.

  2. rdouma commented on May 10, 2026

    @rdouma
    Author

    Ok, running that, I'll keep an eye open for weird behavior and report back if I see anything.

  3. rdouma commented on May 10, 2026

    @rdouma
    Author

    And thanks for the quick fixes!!

  4. rdouma commented on May 10, 2026

    @rdouma
    Author

    After coming back to my computer today, it was stuck again. Quitting and restarting works to show new data.

  5. iamtoruk commented on May 10, 2026

    @iamtoruk
    Member

    Same on my side, but I have provided another fix this morning and tested it, and it seems to be working. Repackaged it to Mac 0.9.7 you can use that with --force

  6. added a commit that references this issue on May 10, 2026
    66316ab
  7. rdouma commented on May 11, 2026

    @rdouma
    Author

    Now it happened during the same day. I noticed the number was no longer updating. The refresh button is grayed out, but if I quit and restart, it displays a higher number so I now it was indeed stale before.

  8. iamtoruk commented on May 11, 2026

    @iamtoruk
    Member

    v0.9.8 shipped today with an additional deadlock fix (#293) on top of the watchdog from earlier. We've been running it for 10+ hours straight with no stale data or grayed refresh button.

    Your current build is from the fix/menubar-loading-watchdog branch which was missing that second fix. To update:

    codeburn menubar --force
    

    This pulls the latest mac-v0.9.8 release and replaces your current install. If you built from source instead, you can also grab the zip directly:

    curl -L https://github.com/getagentseal/codeburn/releases/download/mac-v0.9.8/CodeBurnMenubar-dev.zip -o /tmp/cb.zip
    unzip -o /tmp/cb.zip -d ~/Applications/
    

    Then relaunch from ~/Applications/CodeBurnMenubar.app.

    Let us know if the stale data comes back on this build.

  9. rdouma commented on May 11, 2026

    @rdouma
    Author

    Will test, thjanks. In case you're interested, first install gave an error, 2nd attempt worked.

    Merlin:Nikon remco$ codeburn menubar --force
    Looking up the latest CodeBurn Menubar release...
    Downloading CodeBurnMenubar-dev.zip...
    Unpacking...
    Launching CodeBurn Menubar...
    _LSOpenURLsWithCompletionHandler() failed with error -600.
    
      Menubar install failed: /usr/bin/open exited with status 1
    
    You have new mail in /var/mail/remco
    Merlin:Nikon remco$ codeburn menubar --force
    Looking up the latest CodeBurn Menubar release...
    Downloading CodeBurnMenubar-dev.zip...
    Unpacking...
    Launching CodeBurn Menubar...
    
      Ready. /Users/remco/Applications/CodeBurnMenubar.app
    
  10. AgentSeal commented on May 11, 2026

    @AgentSeal
    Collaborator

    Thanks, that log helped. The release had an accidental dev zip asset, so the installer was picking that first. I removed those assets and rebuilt mac-v0.9.8 with the latest stale state fixes.

    Please run codeburn menubar --force once more. It should now download CodeBurnMenubar-v0.9.8.zip, not the dev zip.

  11. rdouma commented on May 12, 2026

    @rdouma
    Author

    I installed the update yesterday but still the same. Arrived this morning at my desk and the value stayed at yesterday's value. When I click refresh, "Loading today" doesn't finish. Thought I'd force an update, first time failed:

    Merlin:Nikon remco$ codeburn menubar --force
    Looking up the latest CodeBurn Menubar release...
    Downloading CodeBurnMenubar-v0.9.8.zip...
    Unpacking...
    Launching CodeBurn Menubar...
    _LSOpenURLsWithCompletionHandler() failed with error -600.
    
      Menubar install failed: /usr/bin/open exited with status 1
    
    Merlin:Nikon remco$ codeburn menubar --force
    Looking up the latest CodeBurn Menubar release...
    Downloading CodeBurnMenubar-v0.9.8.zip...
    Unpacking...
    Launching CodeBurn Menubar...
    
      Ready. /Users/remco/Applications/CodeBurnMenubar.app
    
  12. rdouma commented on May 16, 2026

    @rdouma
    Author

    It's still happening. I am quitting and restarting a few times a day. Not sure exactly when it stops working. I used to think it happened overnight, but I've seen it happening during the day when I was working as well. I just notice at a certain point that the values don't change anymore, and then quitting and restarting bumps me up a lot, so apparently it stopped working "some time ago" then.

  13. iamtoruk commented on May 17, 2026

    @iamtoruk
    Member

    yeah this is a very frustrating issue but no worries it is solved and I am going to publish a new version tomorrow 0.9.9, which has the tested fix. Will let you know once its live :)

  14. rdouma commented on May 17, 2026

    @rdouma
    Author

    Sounds great! I just thought that maybe you didn't know it was still happening (since the issue is marked as closed).

  15. iamtoruk commented on May 17, 2026

    @iamtoruk
    Member

    I have published a new version today 0.9.9. You can try that update CLI as well... I hope that's solved in this release.. And yes for the first load it will act slower as it will cache all data, but next runs might be superfast

  16. rdouma commented on May 17, 2026

    @rdouma
    Author

    I just installed it. Will let you know how it goes. Thanks!

  17. rdouma commented on May 19, 2026

    @rdouma
    Author

    It still happens in 0.9.9.

  18. iamtoruk commented on May 21, 2026

    @iamtoruk
    Member

    It is working in my case, it has been 3 days and had multiple shutdowns and sleep, and it is intact.. You'd better remove Codeburn completely and install the new version 0.9.10.

  19. rdouma commented on May 23, 2026

    @rdouma
    Author

    Yeah, for me now as well, it has been about two to three days and it seems to be stable. Awesome job. Thanks!

  20. rdouma commented on May 24, 2026

    @rdouma
    Author

    Alas, I was out for a day and now I see it got stuck again. I had to restart and then it started working again. Can it have something to do with a lack of activity for a certain period? Like I said, I was out of town for ~30 hours

  21. iamtoruk commented on May 29, 2026

    @iamtoruk
    Member

    Hey @rdouma yes I actually noticed after 3 days, or so, it was getting stale. I have applied a patch lets hope this works. you can try codeburn menubar --force make sure you use the latest version of CLI as well.

  22. rdouma commented on May 29, 2026

    @rdouma
    Author

    Will do. Thanks for the heads up

  23. rdouma commented on May 30, 2026

    @rdouma
    Author

    Today 0.9.11 was stuck for me at zero again. After a restart, it jumped to $25. Still seems to be something fishy going on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions