Repository navigation
Description
What happens
On a fresh setup, a Workspaces widget can read AeroSpace when AeroSpace isn't usable, and shows an error instead of workspaces. This happens two ways:
- Setup picks a window manager that isn't running. Setup's Developer and Everything presets use AeroSpace, yabai or OmniWM whenever its command is on the login shell's
PATH, even when it isn't running. A Homebrew AeroSpace in/opt/homebrew/binis on the PATH for every account on the Mac, so a new account whose AeroSpace isn't running gets an AeroSpace Workspaces widget that can't connect. - Add widget → Workspaces saves no source. The Add widget choice adds
{"type": "workspaces"}only. A configuration withoutworkspaceSourcedefaults toaerospace, so on a Mac without AeroSpace the new widget shows "AeroSpace is not on your login shell's PATH.", even when nothing else is installed and macOS Spaces would work.
Also, a Workspaces widget on macOS Spaces needs Accessibility to switch desktops, but Settings → General → Access doesn't list it. A bar whose only Accessibility user is that widget says "Your current widgets don't need extra access", and the first click on a desktop fails.
Steps to reproduce
Add path:
- In a new macOS account without AeroSpace, open StableBar and skip setup, or pick a preset without Workspaces.
- Settings → Bar → Add widget → Workspaces.
- The widget shows "AeroSpace is not on your login shell's PATH."
Setup path:
- Have AeroSpace on the login shell's PATH but not running, such as a new account on a Mac with Homebrew AeroSpace.
- Run setup and choose Developer or Everything.
- Setup says "AeroSpace detected", and the Workspaces widget can't connect.
Expected
Use AeroSpace, yabai or OmniWM only when it is installed and running; otherwise fall back to macOS Spaces. A source the configuration names stays while it's installed; one that isn't installed gets the same fallback. Settings lists Accessibility while Workspaces uses Spaces.
Environment
- StableBar 0.11.0 (
mainat 5a9c585) - macOS 27.2
- A new standard account on a Mac with AeroSpace installed through Homebrew
Evidence
Reported while testing a fresh install in a separate account. Diagnosis below is from reading main.
Diagnosis
- Sources/StableBar/Workspaces.swift:105:
WorkspaceSource.detected(path:preferring:)returns the first source whose executable is on the PATH; it never checks that the manager runs. - Sources/StableBar/SetupWindow.swift:143: setup prefers
store.configuration?.workspaceSource, which isaerospacewhenever the file names no source. - Sources/StableBar/WidgetAddCatalog.swift:51 and Sources/StableBar/WidgetSetup.swift:87: adding Workspaces writes no
workspaceSource. - Sources/StableBar/Configuration.swift:664:
workspaceSourcedefaults to.aerospace. - Sources/StableBar/DataSourceRegistry.swift:60: a
workspaceswidget needs no permissions, while Sources/StableBar/Spaces.swift:102 refuses to switch Spaces without Accessibility.
Related
- The AeroSpace connection retries every 2 seconds forever #224 (closed) slowed the reconnect loop for this default-AeroSpace case and noted it "mostly hits people who quit or remove AeroSpace later, or add the widget themselves"; it didn't change which source is used.
- Setup's presets leave the bar nearly empty #351 / feat: choose presets and themes in one setup step, with fuller presets #354 made Developer and Everything fall back to Spaces when no window manager is installed, but not when one is installed and stopped.
- Show macOS Spaces in workspace widgets without a tiling window manager #84 / feat: show macOS Spaces in workspace widgets without a tiling window manager #194 added the
spacessource and its Accessibility requirement for switching.
Triaged by Claude Code (Claude Opus 5.5).
Activity
fix: change the workspace source in the active profile that names it
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 📦🚀