You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codex images: install Codex CLI once and drive it from a single version pin #1624
globally, pinned by ARG CODEX_VERSION, so codex login --device-auth is available on PATH;
nested under @agentclientprotocol/codex-acp, resolved from the adapter's own @openai/codex range.
A global npm install nests the adapter's dependency instead of deduping it, so the adapter never uses the global CLI. #1611 happened because the two copies drifted (adapter 2.0.0 ran CLI 0.158.x while the image advertised 0.166.0). #1616 fixes it by keeping CODEX_ACP_VERSION and CODEX_VERSION in lockstep and adding a smoke step that fails when they diverge.
That works, but it keeps two pins that must move together, two copies of the Codex native binary in every codex image, and nightly-build.yml can still pair a global CLI that differs from the adapter's copy.
Proposal
Evaluate a single-pin layout for Dockerfile.codex, Dockerfile.package (codex stage) and Dockerfile.unified (codex stage):
install only @agentclientprotocol/codex-acp@${CODEX_ACP_VERSION};
expose the adapter's nested CLI as /usr/local/bin/codex (symlink to its @openai/codex/bin/codex.js), or document codex-acp cli login --device-auth for login;
derive the reported Codex version from the installed adapter instead of a separate CODEX_VERSION pin.
Also in scope
Add a smoke step that runs one full ACP session turn against the codex adapter, if CI credentials allow. Today CI covers --version, cli -V and the ACP initialize handshake only.
Consider a runtime smoke lane for Dockerfile.package, which is currently checked only by the pin-parity assertion.
Acceptance
One version pin controls which Codex CLI the adapter runs and which codex is on PATH.
codex --version and env -i HOME=/home/node PATH=/usr/local/bin:/usr/bin:/bin USER=node codex-acp cli -V print the same version in all codex images.
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.
This issue is related to #1628 and #1629, but it is not a duplicate. All three cover the single-install, single-version-pin direction, here for Codex and in #1628 for Claude, and #1629 covers the nightly version drift between the two Claude Code copies. They are tracked separately and should not be closed as duplicates of each other.
Activity
github-actions commentedon Nov 24, 2026
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.
chaodu-agent commentedon Nov 25, 2026
This issue is related to #1628 and #1629, but it is not a duplicate. All three cover the single-install, single-version-pin direction, here for Codex and in #1628 for Claude, and #1629 covers the nightly version drift between the two Claude Code copies. They are tracked separately and should not be closed as duplicates of each other.