Skip to content

Regression in v1.4.10: git-based plugins fail with "No git binary found in $PATH" on Windows CLI #23192

@Vafl9

Description

@Vafl9

Description

After upgrading from v1.4.9 to v1.4.10, git-based plugins fail to install/update on Windows CLI with the error:
ERROR service=plugin pkg=superpowers version=git+https://github.com/obra/superpowers.git error=No git binary found in $PATH failed to install plugin

Environment

  • OS: Windows 11 Pro
  • OpenCode CLI version: v1.4.10 (installed via npm install -g opencode-ai)
  • OpenCode Desktop version: v1.4.10 (works fine)
  • git: v2.51.2.windows.1, installed at C:\Program Files\Git\cmd\git.exe
  • Binary path: C:\Users\<user>\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe

Expected Behavior
Plugin installs/updates successfully, as it does in v1.4.9 and in OpenCode Desktop v1.4.10.
Actual Behavior
Plugin fails to install. The which.sync('git') call inside @npmcli/git (used by @npmcli/arborist for git-based package resolution) cannot find git in PATH, despite git being available in the system PATH.

Key Observations

  • v1.4.9 CLI: Works correctly
  • v1.4.10 CLI: Broken
  • v1.4.10 Desktop: Works correctly (same machine, same version)
  • git is accessible from terminal: where.exe git returns C:\Program Files\Git\cmd\git.exe

Workaround
Downgrade to v1.4.9

Plugins

superpowers

OpenCode version

1.4.10

Steps to reproduce

  1. Install OpenCode CLI v1.4.10 via npm install -g opencode-ai
  2. Add a git-based plugin to opencode.json:
    {
      "plugin": [
        "superpowers@git+https://github.com/obra/superpowers.git"
      ]
    }
  3. Start opencode
  4. Observe error in logs: No git binary found in $PATH

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Powershell 7.6.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

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