Skip to content

Add pitchfork-daemons extension - #33771

Merged
raycastbot merged 8 commits into
raycast:mainfrom
moeriki:ext/pitchfork-daemons
Nov 27, 2026
Merged

raycastbot merged 8 commits into
raycast:mainfrom
moeriki:ext/pitchfork-daemons

Conversation

@moeriki

@moeriki moeriki commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Description

Adds Pitchfork Daemons, for the Pitchfork daemon supervisor (not the music site). Search Daemons lists every daemon by namespace and starts, stops, restarts, opens or shows the logs of one daemon or a whole namespace; Running Daemons shows the running count in the menu bar.

Screencast

List
Logs
Actions

Checklist

@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Nov 20, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · No outstanding findings block merging.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] No outstanding findings block merging.

Summary

Adds Pitchfork daemon controls to Raycast.

  • Search Daemons groups Pitchfork daemons and lets people control them.
  • The menu bar shows Pitchfork's running count and per-daemon controls.
  • Daemon logs appear in a Raycast view that refreshes as new output arrives.

Reviews (8) · Last reviewed commit: "Update CHANGELOG.md and optimise images" · Reviewed by Greptile

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @moeriki 👋

Thanks for bringing Pitchfork to Raycast, and for never starting the supervisor on its own, with a clear Start Supervisor action instead, so a click can't launch anything by surprise 🔥

Here's everything I found in this pass:

Should fix

  • The Start, Stop and Restart items in the Running Daemons menu bar command go through runAction (src/menu-bar.tsx line 14), and runAction calls showToast first (src/ui.tsx line 24), outside its try. Menu bar commands run in the background, where the Toast API isn't available, so it throws "Toast API is not available when command is launched in background" before control runs and the menu item does nothing. Could you use showHUD for the click feedback when environment.commandMode is "menu-bar"? For example:

    if (environment.commandMode === "menu-bar") {
      try {
        await control(action, ids);
        await showHUD(`${VERB[action]} finished`);
        return true;
      } catch (error) {
        await showHUD(`Could not ${action} ${label}`);
        return false;
      }
    }
  • In the same menu bar command, the Start Pitchfork Supervisor item awaits startSupervisor() with no try and catch (src/menu-bar.tsx line 37), so a failed start ends as an unhandled error on the menu item. Could you catch it and show the message with showHUD?

Optional

  • The README asks for Pitchfork 2.30 or newer, but nothing in the code checks the installed version. If someone has an older build, they see whatever raw error the CLI prints. You could read pitchfork --version once and show an "Update Pitchfork" message in the Could not read Pitchfork view.

Feel free to reach me here or on Slack if anything is unclear.

@0xdhrv
0xdhrv marked this pull request as draft November 25, 2026 06:50
@0xdhrv 0xdhrv self-assigned this Nov 25, 2026
Menu bar commands run in the background, where the Toast API is not available, so Start, Stop and Restart threw before running. They now report through showHUD, and a failed supervisor start is caught and shown the same way.

When listing daemons fails, check pitchfork --version and show an Update Pitchfork message for versions older than 2.30.
Comment thread extensions/pitchfork-daemons/src/ui.tsx Resolved
The menu bar command runs in the background, where the Toast API is not available, so showFailureToast would throw instead of showing the failure.
@moeriki

moeriki commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Hey @0xdhrv, thanks for the careful review, and for the snippet. You were right on all three.

Should fix

  • Menu bar Start, Stop and Restart: fixed in 2b3f36e. runAction now takes a HUD-only path when the command runs as a menu bar command, so it never reaches the Toast API there. I used environment.entryPointMode rather than commandMode, since the latter is deprecated (d4f0966).
  • Start Pitchfork Supervisor: fixed in 2b3f36e. A failed start is caught and shown with showHUD.

Optional

  • Version check: added in 2b3f36e. When listing daemons fails, the extension reads pitchfork --version and shows an "Update Pitchfork" view, with a link, for anything older than 2.30. The menu bar shows the same message.

One more of the same kind

While I was in there I found that the menu bar's "Search Daemons…" item still reported a failed launch through showFailureToast, which would hit the same background Toast problem. It uses showHUD now (412e0ac).

Testing

I tested in Raycast against throwaway daemons: Start, Stop and Restart from the menu bar each change the daemon's state and show a HUD, including a daemon that fails on start. With the supervisor stopped, "Start Pitchfork Supervisor" brings it back and the list returns. I couldn't provoke a supervisor start failure or a failed "Search Daemons…" launch, so those two error HUDs are untested.

Marking this ready for another look. Thanks again!

@moeriki
moeriki marked this pull request as ready for review November 27, 2026 08:43

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit a5b1455 into raycast:main Nov 27, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

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

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants