GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — feat(bash): add env parameter for setting environment variables by taxilian · Pull Request #11068 · anomalyco/opencode ConversationFixes #11065 Adds optional Changes:
Verified:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Add optional `env` parameter to the bash tool that allows passing environment variables to the spawned process. This enables plugins to inject environment variables like AGENT_MODE and AGENT_ID to track whether commands are running in primary or subagent sessions. Changes: - Add `env` parameter to bash tool schema (z.record(z.string(), z.string())) - Merge env vars with process.env in spawn call - Add tests for single and multiple environment variables
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Add documentation for the optional env parameter that allows setting environment variables for bash commands.
|
There was an error while loading. Please reload this page.
|
This seems like a good idea. I can imagine how the feature could be useful. Have not personally tested yet, but the PR looks pretty clean, LGTM. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
permissions without this get tricky when trying to add env variables via modifying the command. very frustrating =] just mentioning as another reason this would be nice to get in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
feat(bash): add env parameter for setting environment variables
There was an error while loading. Please reload this page.