Repository navigation
Description
What happens
Choosing Replace the menu bar (or Keep the menu bar, when the menu bar hides) asks System Events to hide or show the macOS menu bar. While that call is still running, Skip setup (or Esc) closes setup at once and restores the bar. The pending call then completes:
- the macOS menu bar hides (or shows) after all, and stays that way;
- setup records the placement, which previews it again, so the running bar shows the discarded preview until the configuration reloads.
The configuration file isn't changed.
Steps to reproduce
- Show the macOS menu bar (auto-hide off) and allow StableBar to control System Events.
- Open setup, and on its placement question choose Replace the menu bar.
- Press Skip setup, or Esc, before the menu bar hides.
The window is one System Events call, longer the first time.
Expected
Skip setup leaves the menu bar as it was before setup and the bar as its file describes, whatever setup was doing when it was skipped.
Environment
StableBar main at e6d4ea9, macOS 27.2.
Evidence
Found in review of #492 (CodeRabbit), from the code on main; not reproduced in a running app.
Diagnosis
SetupSession.place(_:)(Sources/StableBar/SetupWindow.swift:333) drops a stale request after the Automation question (placementRequest, line 341), but not aftertry await setMenuBarHidden(placement == .top)(line 349). It then setspreferences.placement, whosedidSetrunspreview()and pushes the session edits to the store again.SetupSession.cancel()(line 416) restoresstore.sessionEdits, reloads, and startsTask { try await setMenuBarHidden(menuBarHidAtStart) }without waiting for, or invalidating, a placement in flight. That restore can run before the pending hide and see nothing to change.- Skip setup doesn't ask first in this state:
hasChangescounts a placement only oncepreferences.placementormenuBarHideshas changed, after the call returns.
A fix could serialize setup's menu bar changes, so the restore runs after a pending one, and make place(_:) drop a result that arrives after cancel().
Related
- fix: ask before Skip setup throws away the choices made so far #470 asks before Skip setup throws choices away, and fix: stop reopening setup at every launch after Skip setup #472 records the skip; neither covers a change still in flight.
- Skipping setup leaves windows where the clearance preview moved them #466 is another thing Skip setup doesn't undo: windows that the clearance preview moved.
- fix: ask where the bar goes first, and for permissions after the choices #492 moves the placement question to setup's first step; it doesn't change
place(_:)orcancel().
Triaged by Claude Code (Claude Opus 5.5).
Activity
fix: let Skip setup restore the menu bar when a change is still in fl…
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 📦🚀