Repository navigation
Description
What happens
On a fresh setup, StableBar acts before it has the permissions it needs, and fails silently:
- Replace the menu bar does nothing visible when macOS's Automation dialog doesn't appear or is refused.
osascriptwaits up to two minutes. Each extra click queues another request, and then setup shows "StableBar couldn't hide the macOS menu bar. Allow StableBar in System Settings → Privacy & Security → Automation." twice in the intro, once over the title. Top edge in the placement step and Settings → General → Automatically hide the menu bar behave the same way. - Setup finishes without Accessibility, which the app menus, the Apple menu, Menu bar items, window clearance and switching desktops need. Every preset includes app menus and Menu bar items, so the new bar is partly dead until the person finds Allow… in Finishing touches or the warning icon.
Steps to reproduce
- Start StableBar 0.11.0 in a new macOS account, where StableBar has no Automation or Accessibility access.
- In the intro, click Replace the menu bar. Where macOS can't show its dialog (for example in a Screen Sharing session of another account), nothing happens; click again a few times.
- Finish setup without clicking Allow… for Accessibility.
Expected
Setup checks each permission the chosen bar needs before relying on it, and asks for it. When macOS doesn't show its dialog or the person refuses, setup says what to turn on, offers to open that pane in System Settings, and carries on once the permission is allowed, instead of waiting silently and then failing.
Environment
StableBar 0.11.0, macOS 27.2, a new standard account. Seen both in a Screen Sharing session of that account, where macOS can't show any app's consent dialog, and with fast user switching, where it can.
Evidence
In the Screen Sharing session, tccd logged Prompting for access to indirect object System Events by StableBar, and then AccessRequestIndirect: prompt timed out after 0 seconds each time UserNotificationCenter started and quit without showing the dialog. Ghostty's requests for System Events in the same session failed the same way.
Diagnosis
On main (5a9c585):
Sources/StableBar/SetupWindow.swift:place(_:)callsMenuBarAutoHide.set(osascriptto System Events, 120 s timeout) without checking Automation access first, and doesn't stop a second click while the first waits.Sources/StableBar/SetupTour.swift: the intro question showssession.error, and so doestour(size:), which is laid out during the intro too, so the error appears twice.Sources/StableBar/MenuBarAutoHideSettings.swift: the Settings toggle runs the same command the same way.SetupSession.finish()saves the bar without checking Accessibility, and Calendars when Meetings is chosen; their Allow… buttons in Finishing touches are optional.
Related
- Signed releases may be refused when setup hides the macOS menu bar #207: the Apple Events entitlement, fixed in 0.6.0. The setting change itself works once access is allowed.
- App menus show a warning icon throughout setup, even after Accessibility is allowed #352 and Allow… for Accessibility opens System Settings and the macOS prompt at the same time #196: Accessibility warnings and prompts during setup, fixed.
- Setup's Notch preset puts the bar over a macOS menu bar you chose to keep #437 / fix: offer the Notch preset only when the bar replaces the menu bar #438: the Notch preset hiding the menu bar in the background.
Triaged by Claude Code (claude-opus-5-5).
Activity
chore(release): 0.12.0 [skip ci]
stablebar-releases commentedon Nov 10, 2026
🎉 This issue has been resolved in version 0.12.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀