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
Bash tool executes bash commands with cmd.exe #4599
The bash tool frequently tries to run commands like mkdir -p ... using spawn, which on Window, defaults to using cmd.exe as the shell. This results in a directory called -p being created and subsequent commands failing.
OpenCode version
1.0.85
Steps to reproduce
Run opencode on Windows.
Issue a prompt like create the path "src/test".
Screenshot and/or share link
# Create src/test directory path
$ mkdir -p src/test
The syntax of the command is incorrect.
list the directory and note that a -p directory has been created.
Activity
rekram1-node commentedon Nov 21, 2025
ill fix
keathmilligan commentedon Nov 21, 2025
Local hack I'm currently using:
packages/opencode/src/tool/bash.ts:148
rekram1-node commentedon Nov 21, 2025
should be fixed on latest