Repository navigation
Open
Description
What happens
When StableBar opens at login, the Settings window opens too, without anyone asking for it.
Steps to reproduce
- Turn on Open at login in Settings → General.
- Log out and back in, or restart the Mac.
- Settings opens next to the bar.
Not yet reproduced on a clean account. The reporter sees it at login.
Expected
At login, StableBar starts with only the bar. Settings opens only when asked: from the menu-bar icon, the bar's right-click menu, a StableBar widget, by reopening the running app, or with StableBar --customize.
Environment
- StableBar from the beta track (installed now: 0.18.0 beta, build 1362)
- macOS 27.2.1
- Open at login on; Reopen windows when logging back in off; setup completed
Evidence
None captured: macOS's log no longer covers the last login.
Diagnosis
On main (6398679), these are the paths that open Settings during a launch without a click:
applicationShouldHandleReopen(Sources/StableBar/StableBarApp.swift:638) opens Settings for every reopen event while no bar share window is open. The guide documents this as "reopen the running app" (docs/settings.md). A second launch request at login reaches the running bar as a reopen and opens Settings. That second request could come from StableBar being registered twice (SMAppService.mainAppplus an older Login Items entry) or from another tool opening it. This is the likeliest path. To confirm, log reopen events at login.- After a move to Applications,
StableBarApp.swift:383opens Settings → General from a saved record. The record is consumed when read and expires after 15 minutes (ApplicationMoveResume.swift:69), so it shouldn't fire at a later login. application(_:open:)(StableBarApp.swift:633) opens Settings forstablebar://links, andStableBar --customizeasks a running bar to open it.
A fix needs to tell a reopen sent while StableBar starts at login apart from someone opening the app again.
Related
- Opening Settings focuses search and shows an unsolicited popup #780 and PR fix: keep search unfocused when opening settings #781: where focus goes when Settings opens. That's not about Settings opening on its own.
- Skipping setup reopens it at every launch #449 and PR fix: stop reopening setup at every launch after Skip setup #472: setup, not Settings, reopened at every launch after Skip setup. Fixed.
- Offer to move StableBar to Applications from setup, and pick up setup after the relaunch #506: after a move to Applications, the relaunch resumes setup or Settings. That launch-time open is intended.
- Turn on Open at login when setup replaces the menu bar #459 and PR feat: turn on Open at login when setup replaces the menu bar #507: setup turns on Open at login.
Triaged by Claude Code (claude-opus-5-5).
Activity