Skip to content

Commands lose the login shell's PATH until relaunch when the shell is slow at login #362

Closed

Description

@M4n0x

What happens

After login, the Workspaces widget shows "AeroSpace is not on your login shell's PATH." although aerospace is at /opt/homebrew/bin/aerospace and the login shell's PATH includes /opt/homebrew/bin. It stays that way until StableBar is relaunched; Reconnect doesn't help. Script widgets that call Homebrew tools are affected the same way.

Steps to reproduce

Not run yet; these follow from the code.

  1. Make the login shell take more than 10 seconds, for example sleep 11 in ~/.zprofile.
  2. Launch StableBar with a workspaces widget and AeroSpace installed with Homebrew.
  3. The widget reports that AeroSpace is not on the login shell's PATH.

Expected

StableBar waits longer or reads the login shell's environment again, and recovers without a relaunch.

Environment

  • StableBar 0.9.0-beta.20261028072222.447
  • macOS 27.2 (26B123)
  • AeroSpace 0.21.3-Beta from Homebrew
  • StableBar starts as a login item, about a minute after boot. ~/.zprofile runs brew shellenv, two security find-generic-password lookups and nvm.

Evidence

  • The running bar's launch environment is launchd's: PATH=/usr/bin:/bin:/usr/sbin:/sbin.
  • --query showed "modeConnectionError": "AeroSpace is not on your login shell's PATH.".
  • Unified log for that boot: the bar's zsh started at 11:01:30.5, its security lookups ran at 11:01:33, and the bar's widgets started at about 11:01:41 (first EventKit request at 11:01:41.0). That is about 10.5 s after the shell started, which matches the 10 s timeout.
  • Run again later, the same zsh -lc '/usr/bin/env -0' finishes in about 1.3 s with the full PATH.
  • Relaunching the bar cleared it: modeConnectionError became null and the AeroSpace mode read main.

Diagnosis

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Oct 28, 2026
  2. stablebar-releases commented on Oct 29, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.9.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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions