Skip to content

fix: start dev-stack processes from a non-login shell - #1039

Merged
mariusvniekerk merged 1 commit into
mainfrom
fix/dev-stack-non-login-shell
Sep 4, 2026
Merged

fix: start dev-stack processes from a non-login shell#1039
mariusvniekerk merged 1 commit into
mainfrom
fix/dev-stack-non-login-shell

Conversation

@mariusvniekerk

Copy link
Copy Markdown
Collaborator

The dev stack ran every process-compose process through sh -lc. On macOS a login sh sources /etc/profile, which runs path_helper and rebuilds PATH with the system directories first and the developer's own entries appended after. The dev daemon inherited that order and handed it to every agent it launched, so agents picked up Apple's /usr/bin/git ahead of a newer Homebrew git. Apple's git predates config-based hooks, so global pre-commit hooks silently never ran inside agent sessions.

  • Run dev-stack processes with sh -c. process-compose already inherits the caller's PATH, so the login shell added nothing.

This fixes the developer stack only. A daemon started from somewhere without the user's shell environment still passes that environment to agents; resolving PATH from the login shell at agent launch is a separate change.

🤖 Generated with Claude Code

process-compose ran each process through `sh -lc`. On macOS a login sh
sources /etc/profile, which runs path_helper and rebuilds PATH with the
system directories first and everything the user configured appended
after. The dev daemon inherited that order and passed it to every agent
it launched, so agents resolved `git` to Apple's /usr/bin/git even when
a newer Homebrew git was installed. Apple's git predates config-based
hooks, so a user's global pre-commit hooks silently never ran inside
agent sessions.

process-compose already inherits the caller's PATH, so a login shell
added nothing. Use `sh -c` and keep the PATH the developer started the
stack with.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@roborev-ci

roborev-ci Bot commented Sep 4, 2026

Copy link
Copy Markdown

roborev: Combined Review (8fdc17c)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 26s

@mariusvniekerk
mariusvniekerk merged commit a9c6085 into main Sep 4, 2026
15 checks passed
@mariusvniekerk
mariusvniekerk deleted the fix/dev-stack-non-login-shell branch September 4, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant