Skip to content

[codex-action] forward Codex runtime version to Responses - #119

Closed
ftoddywala wants to merge 3 commits into
openai:mainfrom
ftoddywala:codex/cbv9-bio-policy-version-propagation
Closed

[codex-action] forward Codex runtime version to Responses#119
ftoddywala wants to merge 3 commits into
openai:mainfrom
ftoddywala:codex/cbv9-bio-policy-version-propagation

Conversation

@ftoddywala

@ftoddywala ftoddywala commented Jul 16, 2026

Copy link
Copy Markdown

Why

Codex normally includes runtime version metadata on API requests. codex-action routes Codex through a generated local proxy provider, and that path did not preserve the version header. This change forwards the installed Codex version through the proxy provider so upstream services can apply version-aware compatibility behavior.

What changed

  • Best-effort read the installed codex --version value when writing the proxy provider config.
  • Forward a fully validated version token as the provider's http_headers.version.
  • If the version cannot be read or fully parsed, including malformed prerelease/build suffixes, omit the header so the action continues normally.
  • Keep the generated action bundle in sync.
  • Add focused tests proving valid runtime versions forward and malformed versions omit the header.

Validation

  • pnpm run check
  • pnpm test

@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ftoddywala ftoddywala left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have read the CLA Document and I hereby sign the CLA

@ftoddywala

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jul 16, 2026
@ftoddywala ftoddywala closed this Jul 28, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants