Skip to content

shell #27789

@adicatalin1995-dotcom

Description

@adicatalin1995-dotcom

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions