[PR #2863] Added: Inherit environment when starting new process in 'bash' tool. #10466

Closed
opened 2026-02-16 18:15:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2863

State: closed
Merged: No


This changes the bash tool such that it inherits the environment variables from the parent shell.

Currently, running with the bash tool; no environment is inherited. This may be undesirable if the software you're developing requires environment variables to be set. For example, an authentication key for staging/development or a config.

In my specific case, I'm on NixOS, and I've activated nix-ld for convenience using export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH. (This is to work around another unrelated problem)
Without this env var, I can't really develop on one of my projects as I can't run it.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2863 **State:** closed **Merged:** No --- This changes the `bash` tool such that it inherits the environment variables from the parent shell. Currently, running with the `bash` tool; no environment is inherited. This may be undesirable if the software you're developing requires environment variables to be set. For example, an authentication key for staging/development or a config. In my specific case, I'm on NixOS, and I've activated `nix-ld` for convenience using `export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH`. (This is to work around another unrelated problem) Without this env var, I can't really develop on one of my projects as I can't run it.
yindo added the pull-request label 2026-02-16 18:15:07 -05:00
yindo closed this issue 2026-02-16 18:15:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10466