A local-first multi-agent app development platform, built on PenguinHarness
The agent shell no longer assumes bash exists on macOS and Linux
- Date: 2026-08-27
- Type: fix
- Scope:
core - PR: #484
The shell resolver gained on POSIX the fallback chain the Windows branch already had. Without it, a machine whose PATH has no bash failed every command before it ran.
Details
- The POSIX branch resolved to a bare
bashunconditionally, with no existence check and no alternative. A desktop app launched from a GUI inherits the desktop session'sPATHrather than a login shell's, and a trimmed sessionPATH— or a distribution that does not install bash — left every command failing before it ran, on every surface of the app. - Resolution order on POSIX is now:
PENGUIN_SHELL, thenbashonPATH(still spawned as the bare name, so the child resolves it against its ownPATH), then/bin/bash,/usr/bin/bash,/usr/local/bin/bashand/opt/homebrew/bin/bash, then$SHELLwhen it names a POSIX shell that exists, thensh.$SHELLcarries the login shell of the account the server runs as, so a service account's/usr/sbin/nologinor/bin/falseis skipped rather than handed-lc. The probe is aPATHdirectory walk rather than a subprocess: a handful ofstatcalls once per process, no shell spawned to find a shell. - A shell resolved through the non-bash steps is reported to the model under its own name —
zsh,sh— through the system prompt's{{SHELL}}placeholder, because that is the syntax it has to write.