Skip to content

claude images: CLAUDE_CODE_EXECUTABLE Docker ENV is dropped by env_clear() before spawning claude-agent-acp #1623

Done

Description

@chaodu-agent

Description

Dockerfile.claude:35, Dockerfile.package:106 and Dockerfile.unified:141 set ENV CLAUDE_CODE_EXECUTABLE=/usr/local/bin/claude so that claude-agent-acp uses the pinned global Claude Code CLI instead of its bundled SDK cli.js (see #418, fixed in 3c0eb0a).

OpenAB calls cmd.env_clear() before spawning the agent (crates/openab-core/src/acp/connection.rs:469) and passes only HOME, PATH, USER, [agent].env and [agent].inherit_env. A Docker ENV therefore does not reach the adapter, so the image most likely falls back to the bundled CLI again, as in #418.

This is the same root cause as #1611 (CODEX_PATH for codex-acp), found during review of #1616.

Suggested check

Inside a claude image, run the adapter the way OpenAB spawns it:

env -i HOME=/home/node PATH=/usr/local/bin:/usr/bin:/bin USER=node \
  sh -c 'echo "CLAUDE_CODE_EXECUTABLE=${CLAUDE_CODE_EXECUTABLE:-<unset>}"'

Then confirm which CLI the adapter actually launches, and pick a fix that survives env_clear() (whatever approach #1616 settles on for codex).

Activity

  1. github-actions commented on Nov 24, 2026

    @github-actions

    Thanks for the report! A maintainer will triage this shortly and apply the appropriate label. Once a type label is added, the issue will be re-validated automatically.

  2. added
    p1
    on Nov 24, 2026
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

    incompleteneeds-triagep1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions