Repository navigation
Description
What happens
brew uninstall --cask stablebar removes /Applications/StableBar.app and nothing else:
- a bar that's running keeps running from the deleted app;
- the macOS menu bar's auto-hide that setup turned on stays on, so the menu bar stays hidden with no bar in its place once StableBar quits;
- Open at login stays registered in Background Task Management, pointing at the missing app;
- the Accessibility and Automation permissions stay;
/usr/local/bin/stablebarstays, running an app that's gone;- the
StableBarKeychain items stay.
brew uninstall --zap --cask stablebar also trashes the configuration, caches and preferences, with the same leftovers, and the bar that's still running can write its preferences back.
Steps to reproduce
brew install --cask stablebox/tap/stablebar, open StableBar and finish setup with Replace the menu bar and Open at login.- Install the command from Settings → General → Command line.
brew uninstall --cask stablebarwhile the bar runs.
Expected
Homebrew leaves the Mac as Settings → General → Uninstall does, and --zap also removes ~/.config/stablebar. An upgrade or a reinstall keeps the permissions, preferences and Open at login.
Environment
- StableBar 0.18.0 from
stablebox/tap, Homebrew 7.0.12 - macOS 26.6 in a tart VM
Evidence
State before and after brew uninstall --cask stablebar with the bar running (auto-hide on, Open at login on):
==> Uninstalling Cask stablebar
==> Backing up App 'StableBar.app' to '/opt/homebrew/Caskroom/stablebar/0.18.0/StableBar.app'
==> Removing App '/Applications/StableBar.app'
==> Purging files for version 0.18.0 of Cask stablebar
== auto-hide (_HIHideMenuBar): 1
== processes: 490 /Applications/StableBar.app/Contents/MacOS/StableBar
== app: missing
== command: /usr/local/bin/stablebar
== keychain: present
== login item: URL: file:///Applications/StableBar.app/
== TCC (user): kTCCServiceAppleEvents|2
== TCC (system): kTCCServiceAccessibility|2
Diagnosis: the cask in stablebox/homebrew-tap has no uninstall stanza, only zap trash:. Homebrew runs a cask's uninstall stanza for brew upgrade and brew reinstall too, without telling a script which one called it, so the stanza can't simply run StableBar --uninstall --yes: that would reset the permissions and preferences on every upgrade. zap directives run before the app is removed only from Homebrew 7.0.10.
Related
- Uninstall in Settings does nothing, and notch apps cover the middle of the bar #848 / fix: undo StableBar's changes when it's uninstalled from Settings or with Homebrew #894: Settings → Uninstall did nothing; fix: undo StableBar's changes when it's uninstalled from Settings or with Homebrew #894 fixes the Settings sheet and its docs say Homebrew alone only removes files.
- Uninstall StableBar and put back the macOS settings it changed #332 added Uninstall to StableBar, because an app can't run code when it's dragged to the Trash.
- Run StableBar's uninstall when zapping homebrew-tap#1 runs
--uninstall --yesfromzaponly, which covers neither a plainbrew uninstallnor Homebrew before 7.0.10.
Triaged by Claude Code via T3 Code (Claude Opus 5.5).
Activity
fix: undo StableBar's changes when Homebrew uninstalls it (#898)
chore(release): 0.19.0 [skip ci]
stablebar-releases commentedon Nov 25, 2026
🎉 This issue has been resolved in version 0.19.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀