You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: menubar app has to be restarted to get current data #282
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.
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.
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
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.
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:
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
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.
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
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.
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 :)
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
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.
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
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.
Activity
iamtoruk commentedon May 9, 2026
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-watchdogthat 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:Then copy
.build/release/CodeBurnMenubarinto~/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.
rdouma commentedon May 10, 2026
Ok, running that, I'll keep an eye open for weird behavior and report back if I see anything.
rdouma commentedon May 10, 2026
And thanks for the quick fixes!!
rdouma commentedon May 10, 2026
After coming back to my computer today, it was stuck again. Quitting and restarting works to show new data.
iamtoruk commentedon May 10, 2026
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
Fix menubar stuck loading with non-blocking pipe I/O and watchdog
rdouma commentedon May 11, 2026
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.
iamtoruk commentedon May 11, 2026
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-watchdogbranch which was missing that second fix. To update: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:
Then relaunch from
~/Applications/CodeBurnMenubar.app.Let us know if the stale data comes back on this build.
rdouma commentedon May 11, 2026
Will test, thjanks. In case you're interested, first install gave an error, 2nd attempt worked.
AgentSeal commentedon May 11, 2026
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 --forceonce more. It should now downloadCodeBurnMenubar-v0.9.8.zip, not the dev zip.rdouma commentedon May 12, 2026
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:
rdouma commentedon May 16, 2026
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.
iamtoruk commentedon May 17, 2026
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 :)
rdouma commentedon May 17, 2026
Sounds great! I just thought that maybe you didn't know it was still happening (since the issue is marked as closed).
iamtoruk commentedon May 17, 2026
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
rdouma commentedon May 17, 2026
I just installed it. Will let you know how it goes. Thanks!
rdouma commentedon May 19, 2026
It still happens in 0.9.9.
iamtoruk commentedon May 21, 2026
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.
rdouma commentedon May 23, 2026
Yeah, for me now as well, it has been about two to three days and it seems to be stable. Awesome job. Thanks!
rdouma commentedon May 24, 2026
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
iamtoruk commentedon May 29, 2026
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.
rdouma commentedon May 29, 2026
Will do. Thanks for the heads up
rdouma commentedon May 30, 2026
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