Skip to content

v0.9.2 — fixes a broken 0.9.1

Choose a tag to compare

@roypadina roypadina released this 31 Aug 09:57
· 11 commits to main since this release

0.9.1 could not run agentctl at all — every call failed with env: node: No such file or directory, so the app showed an error and an empty list. Upgrade straight past it.

The cause: 0.9.0 stopped sourcing the login profile in the child shell, because doing it on every call cost a round trip and anything the profile printed landed in front of the JSON. Both true — and both beside the point, because a GUI app launched from Finder inherits PATH=/usr/bin:/bin:/usr/sbin:/sbin, and that profile was the only reason node was ever findable. The bundled CLI shim is #!/usr/bin/env node; Homebrew and nvm are both outside that PATH.

Restoring the profile would fix it and bring back what was wrong with it. Instead the child's PATH is now built from the places node actually lives — Homebrew, /usr/local, ~/.local/bin, and each ~/.nvm version directory that really contains a node binary, newest first. Deterministic, no profile, nothing printed into the JSON.

The app also looks inside its own bundle for the CLI first, so it works whether or not the cask's symlink is on PATH.