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
After PR #34390 (merged 2026-05-24T12:59:44 UTC) bumped DefaultCodexVersion from 0.130.0 to 0.133.0, every Codex-engine workflow run fails deterministically with HTTP 400 Unknown parameter: 'stream_options.include_usage' from the OpenAI chat completions API. The Codex CLI retry budget (3 retries on top of the initial attempt = 4 attempts) exhausts on identical errors and the run exits with code 1.
This breaks all Codex-engine workflows on main. See the parent report #34521 for the full 6h failure analysis.
This is an upstream Codex regression — the CLI emits an OpenAI SDK parameter that the configured GitHub-models-routed gpt-5.5 endpoint does not accept. The previous pin (0.130.0) does not emit this field and has been observed working in baseline runs (e.g. §26184060675, Daily Cache Strategy Analyzer, 33 OpenAI requests, conclusion success).
pkg/workflow/codex_engine.go (search for DefaultCodexVersion)
update pkg/workflow/js/version.js and any per-workflow lockfiles regenerated by make regen.
Wait for Codex 0.134+: if upstream ships a fix that omits stream_options.include_usage when the target endpoint doesn't accept it, bump to the patched version instead of reverting.
Upstream report: file a bug at openai/codex (or the appropriate GitHub-hosted equivalent) attaching the request trace and the gpt-5.5 400 response. Note that codex_app_server.client_version: 0.133.0 is the breaking version.
Success criteria / verification
DefaultCodexVersion no longer 0.133.0 on main.
Smoke Codex run on a fresh PR succeeds (conclusion: success, error_count: 0).
Daily Cache Strategy Analyzer next scheduled run completes with at least 1 successful agent turn (compare against baseline of 33 OpenAI requests in audit-diff).
No new occurrences of stream_options.include_usage in agent-stdio logs across the 6h window after the fix lands.
After PR #34390 (merged 2026-05-24T12:59:44 UTC) bumped DefaultCodexVersion from 0.130.0 to 0.133.0, every Codex-engine workflow run fails deterministically with HTTP 400 Unknown parameter: 'stream_options.include_usage' from the OpenAI chat completions API. The Codex CLI retry budget (3 retries on top of the initial attempt = 4 attempts) exhausts on identical errors and the run exits with code 1.
This breaks all Codex-engine workflows on main, regardless of model. See the parent report #34521 for the original 6h failure analysis.
Scope broader than gpt-5.5 — gpt-5.4 also affected
The original report focused on gpt-5.5-targeted workflows. Re-investigation on 2026-05-25 confirms the same error on gpt-5.4. The faulty parameter is emitted by Codex CLI 0.133.0 client-side; the rejecting endpoint behavior is shared by the GitHub-models routed gpt-5.4 and gpt-5.5 endpoints.
This is an upstream Codex regression — the CLI emits an OpenAI SDK parameter that the configured GitHub-models-routed endpoints (both gpt-5.4 and gpt-5.5) do not accept. The previous pin (0.130.0) does not emit this field and has been observed working in baseline runs.
Current state of fix
As of 2026-05-25T01:30 UTC, pkg/constants/version_constants.go still has:
constDefaultCodexVersionVersion="0.133.0"
No revert PR has been merged. The bug remains live in production.
regenerate any per-workflow lockfiles via make regen.
Wait for Codex 0.134+: if upstream ships a fix that omits stream_options.include_usage when the target endpoint doesn't accept it, bump to the patched version instead of reverting.
Success criteria
DefaultCodexVersion no longer emits stream_options.include_usage against GitHub-models gpt-5.4 / gpt-5.5 endpoints.
Daily Observability Report and other Codex workflows produce successful runs for 3 consecutive scheduled executions.
No new occurrences of HTTP 400 unknown_parameter for stream_options.include_usage in the Codex CLI retry logs.
Updated 2026-05-25 by failure-investigator with new gpt-5.4 evidence. Lookback: 6h. Triaged failures: 3 (1 Codex covered here; 2 transient Claude one-offs not requiring tracking).
Problem statement
After PR #34390 (merged 2026-05-24T12:59:44 UTC) bumped
DefaultCodexVersionfrom0.130.0to0.133.0, every Codex-engine workflow run fails deterministically with HTTP 400Unknown parameter: 'stream_options.include_usage'from the OpenAI chat completions API. The Codex CLI retry budget (3 retries on top of the initial attempt = 4 attempts) exhausts on identical errors and the run exits with code 1.This breaks all Codex-engine workflows on
main. See the parent report #34521 for the full 6h failure analysis.Affected workflows and run IDs
Last 6h (2026-05-24 17:56 → 19:10 UTC):
All 7 runs use
engine_id: codex,model: gpt-5.5,codex_app_server.client_version: 0.133.0.Probable root cause
Codex CLI 0.133.0 sends
stream_options.include_usage: truein the chat completions request body. Thegpt-5.5model endpoint rejects this parameter:This is an upstream Codex regression — the CLI emits an OpenAI SDK parameter that the configured GitHub-models-routed
gpt-5.5endpoint does not accept. The previous pin (0.130.0) does not emit this field and has been observed working in baseline runs (e.g. §26184060675, Daily Cache Strategy Analyzer, 33 OpenAI requests, conclusion success).Specific proposed remediation
Pick one (recommended first):
DefaultCodexVersionback to0.130.0while keepingDefaultCopilotVersion: 1.0.52andDefaultGitHubMCPVersion: v1.0.5. Regenerate lockfiles. Constants live in:pkg/workflow/codex_engine.go(search forDefaultCodexVersion)pkg/workflow/js/version.jsand any per-workflow lockfiles regenerated bymake regen.stream_options.include_usagewhen the target endpoint doesn't accept it, bump to the patched version instead of reverting.openai/codex(or the appropriate GitHub-hosted equivalent) attaching the request trace and thegpt-5.5400 response. Note thatcodex_app_server.client_version: 0.133.0is the breaking version.Success criteria / verification
DefaultCodexVersionno longer 0.133.0 onmain.conclusion: success,error_count: 0).stream_options.include_usagein agent-stdio logs across the 6h window after the fix lands.Parent report
#34521
Related to #34521
Problem statement
After PR #34390 (merged 2026-05-24T12:59:44 UTC) bumped
DefaultCodexVersionfrom0.130.0to0.133.0, every Codex-engine workflow run fails deterministically with HTTP 400Unknown parameter: 'stream_options.include_usage'from the OpenAI chat completions API. The Codex CLI retry budget (3 retries on top of the initial attempt = 4 attempts) exhausts on identical errors and the run exits with code 1.This breaks all Codex-engine workflows on
main, regardless of model. See the parent report #34521 for the original 6h failure analysis.Scope broader than
gpt-5.5—gpt-5.4also affectedThe original report focused on
gpt-5.5-targeted workflows. Re-investigation on 2026-05-25 confirms the same error ongpt-5.4. The faulty parameter is emitted by Codex CLI 0.133.0 client-side; the rejecting endpoint behavior is shared by the GitHub-models routedgpt-5.4andgpt-5.5endpoints.Updated affected runs (added 2026-05-25 investigation)
Daily Observability Report for AWF Firewall and MCP Gateway(engine:codex, model:gpt-5.4) has failed 5 of the last 8 daily scheduled runs:stream_options.include_usageerror confirmed in job log line 7941)Last 6h (2026-05-24 17:56 → 2026-05-25 01:30 UTC) Codex-engine failures still observed:
Probable root cause (unchanged)
Codex CLI 0.133.0 sends
stream_options.include_usage: truein the chat completions request body. The endpoint rejects this parameter:This is an upstream Codex regression — the CLI emits an OpenAI SDK parameter that the configured GitHub-models-routed endpoints (both
gpt-5.4andgpt-5.5) do not accept. The previous pin (0.130.0) does not emit this field and has been observed working in baseline runs.Current state of fix
As of 2026-05-25T01:30 UTC,
pkg/constants/version_constants.gostill has:No revert PR has been merged. The bug remains live in production.
Specific proposed remediation (unchanged)
Pick one (recommended first):
DefaultCodexVersionback to0.130.0while keepingDefaultCopilotVersion: 1.0.52andDefaultGitHubMCPVersion: v1.0.5. Regenerate lockfiles. Constants live in:pkg/constants/version_constants.go(DefaultCodexVersion)make regen.stream_options.include_usagewhen the target endpoint doesn't accept it, bump to the patched version instead of reverting.Success criteria
DefaultCodexVersionno longer emitsstream_options.include_usageagainst GitHub-modelsgpt-5.4/gpt-5.5endpoints.unknown_parameterforstream_options.include_usagein the Codex CLI retry logs.Updated 2026-05-25 by failure-investigator with new gpt-5.4 evidence. Lookback: 6h. Triaged failures: 3 (1 Codex covered here; 2 transient Claude one-offs not requiring tracking).