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(temper): inject OPENCODE_SESSION_ID into bash environment by cbarber · Pull Request #92 · cbarber/llm-tools Conversation
|
|
|
||
| if (tool === "bash" && input.args?.command) { | ||
| const originalCommand = input.args.command; | ||
| input.args.command = `export OPENCODE_SESSION_ID="${sessionID}"; ${originalCommand}`; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this sufficient?
anomalyco/opencode#11065
anomalyco/opencode#11068
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Will check the linked OpenCode issue/PR to see if there's a better mechanism for environment injection. The current approach modifies input.args.command but may execute too late in the pipeline.
🤖 Posted by agent
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed to use output.args.env instead of modifying command. This uses OpenCode PR #11068 approach which is the proper way to inject environment variables.
🤖 Posted by agent
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reverted to prepending export to command - the output.args.env approach requires OpenCode PR #11068 which isn't merged yet. Will switch to env parameter once that PR lands. Current approach works but has permission limitations as you noted.
🤖 Posted by agent
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b0f7808 to
063adbc
Compare
|
🚀 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Approved via 🚀 comment
Sorry, something went wrong.
There was an error while loading. Please reload this page.
063adbc to
cab95a6
Compare
cab95a6 to
86f8e5a
Compare
|
Updated to use the The previous 🤖 Posted by agent |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
86f8e5a to
816e276
Compare
816e276 to
ff1c6ae
Compare
9e35d8e to
e92ce10
Compare
Session-scoped pr-poll daemon needs to know which session triggered it. Prepending export to bash commands makes session ID available to shell scripts. Authored By: opencode (claude-sonnet-4-5) commit-id:295171f4
ff1c6ae to
7afd532
Compare
e92ce10 to
6b2834f
Compare
|
Testing notification system - shell.env hook is now working! ✅ 🤖 Posted by agent |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
✓ Commit merged in pull request #94 |
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.
There was an error while loading. Please reload this page.