raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.34k stars 3.04k forks source link

[Coffee] decaf does not cancel three pots menu bar being caffeinated #14098

Open bigplayer-ai opened 2 months ago

bigplayer-ai commented 2 months ago

Extension

https://www.raycast.com/mooxl/coffee

Raycast Version

1.81.2

macOS Version

17.6.1

Description

image

Steps To Reproduce

1) caffeinate 2) decaf while locked (or idk what is the trigger) 3) a lot of caffeination sessions... 4) decaf does not cancel all caffeination session, and the menu does not reflect that

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 2 months ago

Thank you for opening this issue!

🔔 @mooxl @bibixx @GastroGeek @pernielsentikaer @pernielsentikaer @xilopaint @ridemountainpig you might want to have a look.

💡 Author and Contributors commands The author and contributors of `mooxl/coffee` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
bigplayer-ai commented 2 months ago

I believe the problem is that menubar is not being updated correctly, how can I check if my MacBook is caffeinated using a more reliable way other than gum? maybe using terminal?

image

Screenshot 2024-08-20 at 16 27 36

bnew10 commented 2 months ago

I've also been experiencing the multiple filled coffee pots in the menu bar issue.

When I have "Hide the icon" checked, it always happens following a "Caffeinate" then a "Decaffeinate" (which doesn't remove the filled coffee pot), and then with one more subsequent "Caffeinate" it will then add an additional filled coffee pot to the menu bar. When I don't have "Hide the icon" checked, the menu bar coffee pot behaves as expected: filled after a "Caffeinate", and then changes to an empty coffee pot after a "Decaffeinate".

@bigplayer-ai You can check whether your mac is caffeinated by running pgrep caffeinate from the command line. If it returns with a number (its PID) then caffeinate is running. However, from what I've been able to dig into it doesn't seem like it's failing at stopping the builtin macos caffeinate command that gets run, it's just an issue with how the macos menu bar extras section is getting updated.

baruchiro commented 2 months ago

With GitHub plugin I'm facing the same problem:

image

Details from Slack It suddenly happened, I re-login to Github, restart but nothing changed. I'm starting with one logo for my unread notifications. Usually, after I read all the notifications from the Github interface, and open it later on, it disappears immediately after closing it. Because there are not unread notifications anymore. This is the expected behavior. Now, as you can see, sometime during the day I had 4 unread notifications. I read them, from the extension or from Github, and the extension keeps appearing. The next time it re-fetched, and found there were 3 unread notifications, so it recreated itself instead of updating the existing. Note that the numbers are different, but the menu bar of each of the logos shows exactly the same content (the content is the content from the last update, for now, it contains one specific unread notification (although I already read it).
pernielsentikaer commented 2 months ago

Could you check if this happen with the latest version of Raycast

bigplayer-ai commented 2 months ago

Could you check if this happen with the latest version of Raycast

It is still the same problem only when hide menu bar icon is enabled as mentioned by others...

Screenshot 2024-08-29 at 20 37 10

image
pernielsentikaer commented 1 month ago

This should be fixed with today's release. Can you check again?

bnew10 commented 1 month ago

Looks fixed on my end :)

baruchiro commented 1 month ago

With GitHub plugin I'm facing the same problem:

image

Details from Slack It suddenly happened, I re-login to Github, restart but nothing changed. I'm starting with one logo for my unread notifications. Usually, after I read all the notifications from the Github interface, and open it later on, it disappears immediately after closing it. Because there are not unread notifications anymore. This is the expected behavior. Now, as you can see, sometime during the day I had 4 unread notifications. I read them, from the extension or from Github, and the extension keeps appearing. The next time it re-fetched, and found there were 3 unread notifications, so it recreated itself instead of updating the existing. Note that the numbers are different, but the menu bar of each of the logos shows exactly the same content (the content is the content from the last update, for now, it contains one specific unread notification (although I already read it).

Fixed for me too

raycastbot commented 3 days ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊