fix: report resolved Codex CLI version - #174
Conversation
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
The new exact-version handoff breaks supported range/tag inputs when the CLI and proxy publish sets differ. For example, >=0.58.0-alpha.9 <0.58.0-alpha.11 can resolve @openai/codex to 0.58.0-alpha.10, but that proxy version was never published (the proxy only has 0.58.0-alpha.9 in that range). Before this change each package resolved the input range independently; now the proxy install becomes @...proxy@0.58.0-alpha.10 and fails. Could the action report the exact CLI version without forcing the proxy to share it, or resolve/validate a compatible proxy version separately?
Hi @sylvesterkaczmarek thanks for catching that. I updated the PR so the action still reports the exact resolved |
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
Re-reviewed the version handoff. The action now reports the exact installed CLI version as an output while the Responses proxy continues to resolve from the original codex-version input, so ranges/tags no longer require the CLI and proxy packages to have identical published version sets. The regression also pins that separation. My previous concern is resolved.
What this does
Fixes #171 by resolving the exact installed
@openai/codexversion once per run, surfacing it, and reusing it for the proxy install.Why
When
codex-versionis left empty, the action currently installs whatever npmlatestpoints to at run time. That means a workflow pinned to a specific action SHA can still execute a different Codex CLI on two runs of the same workflow.This change makes that concrete and auditable:
codex-versionaction output with the exact installed versionlatestat run time and should be pinned for reproducibility@openai/codex-responses-api-proxyValidation
pnpm install --frozen-lockfilepnpm testgit diff --check