Skip to content

Codex ACP fails with pnpm in packageManager field inside package.json #61249

Description

@aantusahaa

Reproduction steps

  1. Open a javascript project with packageManager field set to use pnpm. e.g.,
{
"packageManager": "pnpm@11.5.0+sha512.dbfcc4f81cf48597afd4bc391ffdf12c11f1a9fb83a395bfa6b0a2d9cc2fd8ffebafdb1ccbd529632153f793904c2615b7f09fe1a345473fd1c35845172a8eb1"
}
  1. Enable pnpm with corepack
  2. Install codex from acp registry (complete the authentication)
  3. Try to open a codex thread from agent panel
  4. You will be greeted with the following error,
Image

Current vs. Expected behavior

Current behavior: Fails to open codex thread in a javascript project that has pnpm in the packageManager field inside package.json.
Expected behavior: Any agent should work regardless of what packageManager is set to in package.json.

Issue seems very similar to #54323

Zed version and system specs

Zed: v1.11.3+stable.326.952d712dac48a4af2c54fb22c82d82a9d69b72d4 (Zed)
OS: Linux Wayland manjaro
Memory: 15 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 26.1.2-arch1.2

Attach Zed log file

Zed.log
2026-07-18T13:53:27+06:00 INFO  [agent_client_protocol::util] connection; name="zed"
2026-07-18T13:53:27+06:00 WARN  [agent_servers::acp] agent stderr: This project is configured to use pnpm because /home/antu/Codes/oits/mmis-be/package.json has a "packageManager" field
2026-07-18T13:53:27+06:00 INFO  [agent_client_protocol::util] connection; name="zed"
2026-07-18T13:53:27+06:00 ERROR [agent_servers::acp] ACP connection error: Internal error: {
  "spawned_at": "/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/agent-client-protocol-1.1.0/src/jsonrpc.rs:1428:39",
  "data": "Broken pipe (os error 32)"
}

Relevant Zed settings

settings.json
{
  "agent_servers": {
    "codex-acp": {
      "type": "registry"
    }
  }
}

Relevant Keymap

keymap.json

(for AI issues) Model provider details

Codex (via acp registry) v1.1.4

If you are using WSL on Windows, what flavor of Linux are you using?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:needs triagetriage is not complete: no `area:*` label, or no `priority:*`/`frequency:*` for Bugs/Crashes

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions