Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Set MUX_PROJECT_PATH, MUX_RUNTIME, and MUX_WORKSPACE_NAME environment variables in both init hooks and bash tool executions for parity.

Changes

  • Add getMuxEnv() function to centralize env var creation
  • Add muxEnv field to ToolConfiguration, used by bash tool
  • Refactor runInitHook to receive muxEnv from caller (no duplication)
  • Add tests for muxEnv injection in bash tool

Environment Variables

Variable Description
MUX_PROJECT_PATH Path to the original project/git repo
MUX_RUNTIME Runtime type: local, worktree, or ssh
MUX_WORKSPACE_NAME Name of the workspace (branch name)

Generated with mux

Set MUX_PROJECT_PATH, MUX_RUNTIME, and MUX_WORKSPACE_NAME environment
variables in both init hooks and bash tool executions for parity.

- Add getMuxEnv() function to centralize env var creation
- Add muxEnv field to ToolConfiguration, used by bash tool
- Refactor runInitHook to receive muxEnv from caller (no duplication)
- Add tests for muxEnv injection in bash tool

_Generated with mux_
@ammar-agent ammar-agent force-pushed the mux-env-vars-init-hook branch from f91a6c5 to 36eb78d Compare December 5, 2025 20:35
- Add MUX_WORKSPACE_NAME to env var list
- Note that env vars are also available in bash tool executions
- Update MUX_RUNTIME values to include 'worktree'
@ammario ammario merged commit 44580b3 into main Dec 6, 2025
19 checks passed
@ammario ammario deleted the mux-env-vars-init-hook branch December 6, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants