You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:Make bash tool respect shell config or add env var override #38799
I have verified this feature I'm about to request hasn't been suggested before.
Summary
The built-in bash tool on Windows is hardcoded to use cmd.exe /c, ignoring the shell field in opencode.json (e.g., "shell": "pwsh"). Please make the tool configurable.
Current Behavior
opencode.json has "shell": "pwsh"
But the AI's bash tool always uses cmd.exe /c on Windows
Config value is only used for TUI terminal, MCP server spawn, shell completions, etc. — not for the bash tool
Activity
github-actions commentedon Jul 25, 2026
This issue might be a duplicate of existing issues. Please check:
"shell": "pwsh"config not respected by the bash tool on Windows (still uses PS 5.1 / cmd.exe instead of the configured shell)github-actions commentedon Sep 25, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.