Skip to content

Settings says the workspace connection is Connected while it reconnects #693

Closed

Description

@Jonathanm10

What happens

Settings → General shows the workspace connection as Connected (green) while StableBar's AeroSpace subscription has dropped and is waiting to reconnect. This happens when no Workspaces widget is enabled and the subscription runs only for the AeroSpace mode (for example bar.style.states["mode.command"]).

StableBar --query reports "modeConnectionError" : "AeroSpace disconnected. Reconnecting…" at the same moment, and a bug report also says error: AeroSpace disconnected. Reconnecting…, so the two readouts disagree.

Steps to reproduce

  1. Use a configuration with "workspaceSource": "aerospace", a mode state such as "bar": { "style": { "states": { "mode.command": { "borderEdges": "all" } } } }, and no Workspaces widget.
  2. Let the aerospace subscribe connection drop (quit AeroSpace, or any disconnect).
  3. Open Settings → General and look at the row under Workspace manager.

Expected

The row shows the disconnect in red ("AeroSpace disconnected. Reconnecting…") until the subscription is back, as it does when a Workspaces widget is enabled.

Environment

main at 65c6a73, macOS 27.2.

Evidence

Reproduced with a stand-in aerospace whose subscription drops every few seconds and a scratch configuration: --query reported the reconnecting error while the row said Connected.

Diagnosis

  • Sources/StableBar/Workspaces.swift, the connection loop's catch: a disconnect always sets connectionError, but sets the public error only if tracksWorkspaces. isRunning (task != nil) stays true while the loop backs off.
  • Sources/StableBar/GeneralSettingsView.swift, connection: shows error in red, else isRunning as Connected, and never reads connectionError.
  • Sources/StableBar/BarStore.swift, liveReport(), already reads error ?? connectionError.

Related

Triaged by Claude Code (claude-opus-5-5).

Activity

  1. added
    needs-triage
    on Nov 16, 2026
  2. added 2 commits that reference this issue on Nov 16, 2026
    6937adb
    ef01e13
  3. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagereleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions