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(opencode): add configurable shell resolution with plugin support by JohnDeved · Pull Request #9724 · anomalyco/opencode Conversation
|
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
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.
This PR adds configurable shell resolution with plugin support to OpenCode, allowing users to override shell detection through configuration or plugins instead of relying solely on environment variables.
Changes:
shell configuration field to allow explicit shell path overrideshell.resolve for dynamic shell resolutionShell.preferred() and Shell.acceptable() from synchronous to async functionsawait with the newly async shell functionsCopilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
packages/opencode/src/config/config.ts |
Added optional shell field to config schema |
packages/sdk/openapi.json |
Regenerated SDK with new shell config field |
packages/sdk/js/src/v2/gen/types.gen.ts |
Regenerated TypeScript types with shell config |
packages/plugin/src/index.ts |
Added shell.resolve hook for plugin-based shell resolution |
packages/opencode/src/shell/shell.ts |
Converted to async, added config/plugin resolution with priority chain |
packages/opencode/src/tool/bash.ts |
Added await to Shell.acceptable() call |
packages/opencode/src/pty/index.ts |
Added await to Shell.preferred() call |
packages/opencode/src/session/prompt.ts |
Added await to Shell.preferred() call |
packages/opencode/test/shell/shell.test.ts |
Added 4 tests for config, plugin, and fallback behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Remove unused imports (Config, path) - Add return statement to mock function - Add test for Shell.acceptable() with plugin - Add test for Shell.acceptable() fallback on blacklisted shell
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Improve shell config description with priority info and examples - Add JSDoc documentation for shell.resolve plugin hook - Add test: config takes priority over plugin - Add test: config can override blacklist for Shell.acceptable
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
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.
[FEATURE]: Add config to change shell for bash tool
There was an error while loading. Please reload this page.