Description
The "paths[0]" property must be of type string, got undefined
On Windows 10/11 with PowerShell 5.1, every bash tool invocation fails with the same error:
The "paths[0]" property must be of type string, got undefined
This happens regardless of the command — ls, pwd, Get-ChildItem, dir — all return the same error. The Read/Write/Edit/Glob/Grep tools work fine. The issue appears to be an internal validation error in the bash tool handler, not a shell or user config problem.
Steps to reproduce:
Use opencode on Windows with PowerShell as the shell
Run any command via the bash tool
Observe the error
Environment:
OS: Windows (win32)
Shell: PowerShell 5.1
Working directory: Other AI coding agents (Claude Code, Cursor, etc.) work normally on the same machine with the same shell — the issue is specific to opencode's bash tool implementation.
Plugins
No response
OpenCode version
v1.14.29
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Windows 10
Terminal
No response
Description
The "paths[0]" property must be of type string, got undefined
On Windows 10/11 with PowerShell 5.1, every bash tool invocation fails with the same error:
The "paths[0]" property must be of type string, got undefined
This happens regardless of the command — ls, pwd, Get-ChildItem, dir — all return the same error. The Read/Write/Edit/Glob/Grep tools work fine. The issue appears to be an internal validation error in the bash tool handler, not a shell or user config problem.
Steps to reproduce:
Use opencode on Windows with PowerShell as the shell
Run any command via the bash tool
Observe the error
Environment:
OS: Windows (win32)
Shell: PowerShell 5.1
Working directory: Other AI coding agents (Claude Code, Cursor, etc.) work normally on the same machine with the same shell — the issue is specific to opencode's bash tool implementation.
Plugins
No response
OpenCode version
v1.14.29
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Windows 10
Terminal
No response