Skip to content

ACP coding agents installed with npx are reported "Not installed" (binary is in the npx cache, not on PATH) #787

Closed

Description

@AliRezaei-Code

Summary

A coding agent installed with npx works from a terminal, but the harness card says Not installed / Binary: not found on PATH, and the setup dialog ends with "The agent is not ready yet."

Environment

  • orx 0.2.21 (macOS desktop app)
  • @deepseek-ai/dsh 0.2.1-rc.2, installed with npx -y @deepseek-ai/dsh
  • DeepSeek Harness selected under Harnesses (also affects any custom ACP agent whose binary comes from npx)

What happens

Harnesses → DeepSeek Harness          via ACP   [Not installed]
Binary        not found on PATH
Version       —
Agent models  none

Yet the same binary runs fine in a shell:

$ ~/.npm/_npx/1e7f6d9597241db0/node_modules/.bin/dsh --version
0.2.1-rc.2

Cause

npx -y <pkg> installs nothing globally. It unpacks the package into
~/.npm/_npx/<hash>/node_modules/.bin and runs it from there, so nothing lands on PATH.

executable_path in src/local/acp.rs resolved launchers with find_on_path and then a fixed list of home directories (~/.local/bin, .grok/bin, .devin/bin, .zcode/runtime/bin). The npx cache is not in either, so the harness resolves to nothing and the UI asks the user to install something that is already installed.

npm i -g into a prefix that is not on PATH fails the same way.

Proposed fix

Look where the installers actually put the executable: the npx cache (newest entry first — the cache keeps one directory per invocation) and the common global prefixes (~/.npm-global/bin, %APPDATA%\npm on Windows, npm's Windows cache root). Opening a PR with a test and a check against the install above.

Activity

  1. added
    bug
    on Oct 29, 2026
  2. added a commit that references this issue on Nov 5, 2026
    305a032
  3. added a commit that references this issue on Nov 5, 2026
    a1b3dd5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions