Skip to content

[Brew] One action at a time per package - #33983

Merged
raycastbot merged 3 commits into
raycast:mainfrom
chrismessina:ext/brew
Nov 26, 2026
Merged

raycastbot merged 3 commits into
raycast:mainfrom
chrismessina:ext/brew

Conversation

@chrismessina

@chrismessina chrismessina commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Pressing Install, Upgrade or Uninstall again while it was still running started a second Homebrew for the same package, which failed with "Brew is Busy" while the first one carried on.

Each package now runs one action at a time: its row shows a spinning icon, Install and Upgrade read "Installing…" or "Upgrading…" and do nothing on ↵, and Uninstall is hidden until the list shows the result.

Screencast

image file-89ba362466f3039520a4b9702d3ec0a6

Changes

  • A package being installed, upgraded or uninstalled can't be acted on again until the list shows the outcome, so a double ↵ no longer fails with "Brew is Busy"
  • The "Installing…" toast appears as soon as you press Install, rather than after the trust check for a package from a third-party tap
  • Uninstalling a package that was already removed (from the Terminal or another command) says it was already uninstalled instead of reporting an error
  • When Uninstall refuses a pinned package, its toast offers Force Uninstall and Unpin as two separate actions, matching its message, instead of one action that did both
  • AGENTS.md now ships with the extension on purpose: it records the decisions that are expensive to rediscover for whoever maintains Brew next

Checklist

- Merge branch \'contributions/merge-1795638172400\'
- Pull contributions
- chore: ship AGENTS.md with the extension
- fix(uninstall): offer Force Uninstall or Unpin for a pinned package
- fix(actions): one brew operation per package at a time
- chore: sync the merge date of raycast#33909 (2026-11-24)
- fix(installed): list Casks before Dependencies in the filter
- fix(search): carry a cask\'s install time into Search; correct the changelog
- feat(installed): drop status letters from rows; show the install date in the sidebar
- fix(search): carry linked_keg into Search rows; tighten the oldest-keg guard
- feat(installed): filter dependencies from the dropdown; show the version brew uses
- chore: sync the merge date of raycast#33901 (2026-11-24)
- docs(installed): list what the build-dependency rule cannot see
- fix(installed): read a HEAD keg\'s build dependencies; narrow what Unused claims
- fix(installed): don\'t tag build dependencies Homebrew keeps as Unused
- docs(agents): ray develop double-runs mount effects under StrictMode
- chore: sync the merge date of raycast#33798 (2026-11-21)
- fix(search): trim the launch argument like typed text
- docs(pins): say when upgradeChecked\'s pin read trusts brew\'s own flag
- fix(pins): catch pins under old names in Search and in Show Upgrades retries; read sized non-numeric versions
- docs(changelog): Homebrew 7.0.15 previews and pins; stamp raycast#33527 with its merge date
- fix(preview): read Homebrew 7.0.15 plan sizes and pins under old names
- fix(taps): read every qualified package on a README install line
- fix(taps): read a trusted alias by kind when brew refuses its same-named cask
- fix(preview): Run in Terminal uses ⌘⇧T, as in Show Upgrades
- fix(preview): drop the explicit ⌘↵ on Run in Terminal
- fix(taps): show Stop Trusting\'s installed read as the list\'s loading bar
- fix(taps): refresh Show Installed on trust changes, and name hidden formulae reliably
- chore: restore local package.json changes on top of the published copy
- chore: sync package.json with the published extension (raycast#33590)
- fix(taps): install from and list untrusted taps on Homebrew 7.0.14
- fix: address nhojb\'s review on raycast#33527
- fix: close Codex findings on the Greptile fixes, and keep Installed tags beside the sidebar
- fix: address Greptile review on raycast#33527
- fix(taps): a lead naming a formula never matches an installed cask; Search drops a stale sidebar choice
- fix: title the debug action Show Debug Info, with the bug icon
- fix(taps): match installed leads by alias and either kind; reset Search\'s sidebar on a preference change
- fix: clear the house-style audit, and two tap follow-ups
- fix(taps): house-style fixes in the tap check
- chore(deps): bump @raycast/api to 2.12.1
- chore: keep AGENTS.md out of Store submissions
- feat(taps): check a tap with git before adding it, and untrust on remove
- docs(todo): restore the package detail entry the sync dropped
- feat(warnings): read Disabled and Deprecated reasons as short labels
- chore: sync with the published extension (raycast#33168, raycast#33250, raycast#33330, raycast#33398, raycast#32119)
- docs(todo): track the package detail\'s abort-and-refetch
- test(cache): replace anyzig, which lost its requirements upstream
- chore: sync with the published extension (raycast#32283, raycast#32708)
- chore: stamp Remove Tap fix with its merge date (2026-10-04)
- revert(toast): take the settle-gap toast changes out of this PR
- fix(toast): send hides at once, never after the settle gap
- fix(taps): refresh the list after any attempted add or remove
- fix(toast): ignore Cancel once the action has finished
- fix: progress toast overwriting its own result; untap without autoremove
- fix(taps): uninstall a tap\'s packages explicitly before untapping
- fix(search): format section counts in the user\'s locale
- chore(deps): brace-expansion 5.0.12, @raycast/api 2.6.0
- chore(taps): changelog, README, Homebrew 6 add-tap wording
- feat: third-party taps
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: brew Issues related to the brew extension platform: macOS OP is contributor The OP of the PR is a contributor of the extension labels Nov 25, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @nhojb @Aayush9029 @mathieudutour @urwrstkn8mare @ashokbaruaakas @MillerApps @pernielsentikaer @jfkisafk @vpukhanov @j3lte @alexander-cato @ViGeng @ridemountainpig @clins1994 @alexi-build @dibas-np @raulgg you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="ext/brew"
FORK_URL="https://github.com/chrismessina/extensions.git"
EXTENSION_NAME="brew"
REPO_NAME="extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

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

@chrismessina chrismessina changed the title Update brew extension [Brew] One action at a time per package Nov 25, 2026
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · No new blocking issue remains in the reviewed changes.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] No new blocking issue remains in the reviewed changes.

Summary

Adds one shared busy state per package for Install, Upgrade, and Uninstall.

  • Each package allows only one install, upgrade, or uninstall at a time.
  • Install shows its progress toast before checking package trust.
  • Uninstall reports success when the package is already gone.
  • Pinned packages offer separate Force Uninstall and Unpin choices.
  • The Brew notes document unfinished bulk-action coordination work.

Reviews (3) · Last reviewed commit: "Update CHANGELOG.md" · Reviewed by Greptile

Comment thread extensions/brew/AGENTS.md Resolved
Comment on lines +92 to +93
const busy = useInFlight(packageKey(props.formula));
if (busy) return <BusyAction label={busy} />;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Terminal install bypasses busy state

The new check only replaces the in-Raycast Install action. Its sibling “Run Install in Terminal” remains active in InstallSlotAction. Start an install, then press ⌘↩ while it runs: the terminal action bypasses the claim and launches another install for the same package. Apply the busy check to both slots so this route cannot start a conflicting Homebrew operation.

Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/brew/src/components/actions.tsx
Line: 92-93

Comment:
**Terminal install bypasses busy state**

The new check only replaces the in-Raycast Install action. Its sibling “Run Install in Terminal” remains active in `InstallSlotAction`. Start an install, then press ⌘↩ while it runs: the terminal action bypasses the claim and launches another install for the same package. Apply the busy check to both slots so this route cannot start a conflicting Homebrew operation.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@greptile Fixed in f225935. While a package is busy, InstallSlotAction now hides Run Install in Terminal (the first slot shows the busy label instead), and the same check covers Run Adopt in Terminal, Run Upgrade in Terminal, and the install/upgrade previews' Run in Terminal action. Check for Updates' Upgrade button now takes the same per-package claim as the row's Upgrade.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The reported package-scoped routes are fixed: InstallSlotAction, the Uninstall/Adopt/Upgrade Terminal actions, and the single-package preview Terminal actions now check the package’s in-flight state; Check for Updates’ Upgrade also uses the shared claim.

One gap remains in the whole-machine Upgrade Preview: RunInTerminalAction only checks a key when item is provided (extensions/brew/src/components/installPreview.tsx:431), but that preview passes no item (extensions/brew/src/components/installPreview.tsx:674). So while a package operation is running, its whole-machine Run Upgrade in Terminal action can still start another brew process. Please gate that machine-wide action whenever any package claim is active.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

- fix(actions): claim the Check for Updates upgrade; hide preview Terminal runs while busy
- chore: stop tracking AGENTS.md; keep it out of the Store
- fix(actions): hide Run … in Terminal while a package is busy
@chrismessina
chrismessina marked this pull request as ready for review November 25, 2026 21:28
chrismessina added a commit to chrismessina/raycast-harness that referenced this pull request Nov 25, 2026
…o end

changelog-history paired a published entry with the first local heading
that matched, so a CHANGELOG repeating a (title, date) heading FAILed
falsely (brew, raycast/extensions#33983). Entries now pair by occurrence;
status and each redaction record are consumed per occurrence.

pr-local-only passes a file the preset's ship.keep keeps for this
extension and names it. New preflight check keep-gitignored FAILs when the
extension's own .gitignore would drop a kept file from the Store PR. One
shared publishedTracks() predicate decides "the published copy already
tracks a file here" for every check that asks it, so a published
directory is never taken for a tracked file (agent-scaffolding,
dev-material, contributing-mirror, readme-links, screenshots).

Reviewed by Codex (3 rounds: CDUP-1..3 fixed).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@0xdhrv 0xdhrv self-assigned this Nov 26, 2026

@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 f248542 into raycast:main Nov 26, 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

extension: brew Issues related to the brew extension extension fix / improvement Label for PRs with extension's fix improvements OP is contributor The OP of the PR is a contributor of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants