Repository navigation
fix: update bundled Codex for newer ChatGPT models - #200784
Conversation
Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: e5a67704-23ec-8d2e-9a41-8c2e3aeead5f
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
✅ Dependency graph changes approvedA repository admin or SecOps member approved this revision with an explicit dependency approval comment.
A later push requires a fresh approval comment unless the author is a repository admin or SecOps member. |
|
Codex review: blocked before merge. What this changesThis PR upgrades bundled Codex from 0.164.0 to 0.169.0, refreshes protocol validators, and recognizes its native launch diagnostics. Example: A completed failed turn contains audio input {"type":"audio","fileId":"file-audio-1"}.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: the bundled-runtime upgrade remains useful, the earlier relay blocker is resolved, and no introduced code defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Codex plugin launches the managed native app-server, relays provider requests, and validates native responses before projecting them into OpenClaw conversation state. flowchart LR
A[OpenClaw session] --> B[Codex plugin]
B --> C[Managed Codex app-server]
C --> D[Inference relay]
D --> E[Provider catalog and inference]
C --> F[Protocol validators]
F --> G[Conversation projection]
Technical reviewBest possible solution: Keep the synchronized runtime and protocol refresh in the existing Codex owners while preserving the landed picker, relay, and authentication contracts. Do we have a high-confidence way to reproduce the issue? Source confirms that native discovery sends the runtime version and the old validator rejects audio fileId snapshots; account-specific backend availability was not independently reproduced. Is this the best way to solve the issue? The synchronized dependency and generated-schema refresh addresses the compatibility boundary without introducing another discovery owner or changing authentication policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ec9a77fa3c04. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +9, Tests +206, Docs 0, Config 0, Generated +424, Other 0. Total +639 across 19 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 17, 2026, 5:29 PM ET / 22:29 UTC (Revision 3). |
Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 3095493b-78da-8f66-aa9b-02317ee9916d
Adopt the bounded GET /models relay repair from bdjben in #197768, preserving native account headers and the existing destination and OAuth boundaries. Add real native app-server discovery and streaming cleanup regressions. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 623c3418-83e3-8335-b6ab-dc73d8d23d8c
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]>
Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]>
Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in #197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: ce57f1a5-a951-854f-b76c-e48c4f5aef83
Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]>
Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]>
Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in #197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4da73a83-088d-8b20-b3c8-612426e5fc2c
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
/allow-dependencies-change |
1 similar comment
|
/allow-dependencies-change |
…197768) Allow bodyless native Codex model-catalog requests through the existing fixed-destination relay while preserving native account headers, transport restrictions, resident admission and cleanup. Reuse HTTP response streaming without changing inference POST behavior. Validation: exact-head CI and applicable dependency/security gates passed; focused relay coverage and independent P0-P3 review found no actionable defects. Real native-binary red/green proof covers the rejected request path with a mocked external fetch boundary; real HTTPS forwarding is covered separately. A fully live ChatGPT backend run and GPT-6.2 entitlement remain unverified. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> (cherry picked from commit ed3230d) Dependency closure for #200784: the release baseline rejects native GET /models. Co-authored-by: RomneyDa <[email protected]>
* fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * fix: update bundled Codex for newer ChatGPT models Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: e5a67704-23ec-8d2e-9a41-8c2e3aeead5f * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 3095493b-78da-8f66-aa9b-02317ee9916d * fix(codex): allow native model discovery through the relay Adopt the bounded GET /models relay repair from bdjben in #197768, preserving native account headers and the existing destination and OAuth boundaries. Add real native app-server discovery and streaming cleanup regressions. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 623c3418-83e3-8335-b6ab-dc73d8d23d8c * fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * test(codex): verify native catalog discovery and cleanup Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in #197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: ce57f1a5-a951-854f-b76c-e48c4f5aef83 * fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * test(codex): verify native catalog discovery and cleanup Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in #197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4da73a83-088d-8b20-b3c8-612426e5fc2c --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]> (cherry picked from commit 82a38fb) Release adaptation for the signed11.5-based 2026.11.6 line: retain fs-safe 0.26.13, codex-acp 2.2.2, and SDK 1.9.0; update only their Codex pin. Retain baseline terminal tests and add the intended new errors. Regenerate validators with the baseline generator from the exact rust-v0.169.0 canonical experimental exports. Use the baseline default relay SSRF policy (no upstreamPolicy owner exists here), and condense the existing return to retain the module line budget. Required relay companion: ed3230d (#197768). Co-authored-by: RomneyDa <[email protected]>
* fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * fix: update bundled Codex for newer ChatGPT models Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: e5a67704-23ec-8d2e-9a41-8c2e3aeead5f * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 3095493b-78da-8f66-aa9b-02317ee9916d * fix(codex): allow native model discovery through the relay Adopt the bounded GET /models relay repair from bdjben in openclaw#197768, preserving native account headers and the existing destination and OAuth boundaries. Add real native app-server discovery and streaming cleanup regressions. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 623c3418-83e3-8335-b6ab-dc73d8d23d8c * fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * test(codex): verify native catalog discovery and cleanup Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in openclaw#197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: ce57f1a5-a951-854f-b76c-e48c4f5aef83 * fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * test(codex): verify native catalog discovery and cleanup Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in openclaw#197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4da73a83-088d-8b20-b3c8-612426e5fc2c --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]>
* fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * fix: update bundled Codex for newer ChatGPT models Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: e5a67704-23ec-8d2e-9a41-8c2e3aeead5f * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 3095493b-78da-8f66-aa9b-02317ee9916d * fix(codex): allow native model discovery through the relay Adopt the bounded GET /models relay repair from bdjben in #197768, preserving native account headers and the existing destination and OAuth boundaries. Add real native app-server discovery and streaming cleanup regressions. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 623c3418-83e3-8335-b6ab-dc73d8d23d8c * fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * test(codex): verify native catalog discovery and cleanup Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in #197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: ce57f1a5-a951-854f-b76c-e48c4f5aef83 * fix: update bundled Codex for newer ChatGPT models Upgrade the bundled runtime and matching client-version pins to 0.169.0, regenerate the upstream protocol, and cover terminal errors and audio file references. Preserve launcher errors from execve and forward cleanup arguments in the HTTP test fixture. Co-authored-by: VACInc <[email protected]> * test(codex): type audio fixtures as valid JSON variants Keep both native audio source variants without inferred undefined properties, so the regression fixture satisfies the app-server JSON contract. Co-authored-by: VACInc <[email protected]> * test(codex): verify native catalog discovery and cleanup Retain native 0.169.0 catalog and disconnect/shutdown regression coverage after the relay repair landed in #197768. Co-authored-by: Ben Badejo <[email protected]> Co-authored-by: VACInc <[email protected]> * Publish openclaw/cool-prawn Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4da73a83-088d-8b20-b3c8-612426e5fc2c --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]> (cherry picked from commit 82a38fb) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Native Codex model discovery uses the Codex client version. The bundled 0.164.0 runtime is behind the 0.169.0 CLI that @VACInc reports can see
gpt-6.2-solandgpt-6.2-astra. This updates the bundled runtime and matching protocol so the old native client does not hold back discovery.Related: #200766 supplied the GPT-6.2 catalog and provider-transport support. Ben’s #197768 supplied native catalog forwarding through the inference relay and is now merged as ed3230dd29d1. This PR includes that commit as an ancestor: it no longer contains the relay production changes and retains additional native-discovery and cleanup regression tests. It also preserves the subsequently merged #200811: the subscription picker independently requests
client_version=99.0.0, while native app-server discovery still uses its actual binary version. The remaining OpenAI version fallback applies to Platform access-program discovery. These are complementary paths; actual native availability still depends on the account and backend.User Impact
Bundled Codex and the Platform access-program version fallback report version 0.169.0. Matching protocol validation accepts uploaded audio-file references without dropping a completed turn. This does not add GPT-6.2 catalog entries, change default models, or change authentication policy.
Context limits stay unchanged: the merged GPT-6.2 catalog records a 1,050,000-token model window, a 272,000-token default working budget, and a 128,000-token maximum output for Astra and Sol. User-selected limits and native context reporting remain unchanged. No files overlap the catalog/transport changes from #200766.
Why This Change Was Made
rust-v0.169.0, using the existing repository generator helpers.modelNotFound,policyCapacityUnavailableandinferenceHookDenied, including completed snapshots containing the new audiofileIdrepresentation.execvelaunch diagnostic only when its path matches the native binary. Repair an HTTP test fixture that dropped shell arguments; production cleanup and permissions are unchanged.Protocol compatibility and generation provenance
No client request methods were removed. Selected response roots retain their required fields; dynamic-tool call parameters and model-list responses are unchanged. Optional item timestamps, agent-message moderation, image generation IDs and thread attachment IDs require no consumer change. The regenerated mirror includes Account’s
gcpvariant, optional ChatGPTworkspaceNameand optional GetAccountResponseuserId, without enabling new authentication behavior. OptionalModelListParams.modelProviderremains omitted to use the configured provider. New memory, guardian, approved-plan, provider/GCP/account/security setup methods are not called. Audio URL and uploaded-file variants both validate.Source: rust-v0.169.0, commit
d32063f96c2dff1dc96af839b3952abb6acfeda4. Used the checked-in experimental export archive with existing materialization, staging, compaction and formatting helpers, thenscripts/generate-codex-validators.mts. All eight selected JSON schemas round-trip to those exports. No generated schema or validator was hand-edited. Rust/Cargo is unavailable here, so the Rust fixture compilation stage ofprotocol:syncwas not rerun.Evidence
After rebasing onto Ben’s landed repair, focused protocol, failed-turn, terminal-error, HTTP-relay and native-binary tests passed: 94 passed, 1 optional live test skipped across five files. The relay conflict retained 0.169.0 and the additional disconnect/shutdown regressions. The subsequent #200811 conflict retains the new broad subscription-picker test and removes this PR’s now-obsolete picker-version expectation. Codex and dependency file contents remain byte-identical to the tested candidate. After integrating #200811, the subscription-discovery, provider, Platform access-program and version-contract tests passed. Formatting and
git diff --checkpassed.An independent P0–P3 review of the complete candidate after the relay rebase returned
scoped-cleanwith no actionable findings. That evidence is retained for the unchanged Codex/dependency delta; the later integration only removes an obsolete picker test and incorporates #200811’s existing behavior. No hostile behavior was identified in the reviewed delta; this is not an audit of all upstream dependency source.The real pinned app-server requests its catalog through OpenClaw’s RPC client and loopback relay. Removing Ben’s repair causes 502 and no upstream request; restoring it returns a remote-only synthetic model through
model/list, preserving native account headers. The external fetch boundary is mocked; separate real-HTTPS tests cover forwarding, auth separation, upstream errors and cleanup. Prior relay-family tests passed 88 tests, with one optional live skip, plus extension-test typecheck and targeted type-aware lint.Protocol-source/version contracts and affected OpenAI discovery/provider tests passed 68 tests. Validator regeneration, targeted lint and the repaired HTTP fixture passed. Installed package reports
codex-cli 0.169.0.Explicit base-fail/head-pass comparison: the same failed-turn fixture with
codexErrorInfo: "modelNotFound"and audio{ "type": "audio", "fileId": "file-audio-1" }was passed directly to the unchanged generated validators read from Git. BothisCodexTurnCompletedNotificationandisCodexTurnStartResponsereject it at base0a27bd7f85fa6af2964182a8c54a709b143fdefeand accept it at published headd2496ff4de05b0365d010783eea25b06affaaf3e. The committed consumer regressions also pass on the head.Important scope of the regression: new error-name strings alone already pass the old open-enum validator; the comparison confirms
modelNotFounderror notifications pass on both revisions. We do not claim those strings alone reproduced a hang. The concrete old-schema failure is a completed failed turn containing audiofileId; regeneration makes it validate and the tests protect error display and terminal settlement.Current-head hosted validation: CI run 44188975323 completed successfully for
d2496ff4de05b0365d010783eea25b06affaaf3e. The remaining Apple checks also completed successfully, including Periphery. At the final check, the only nonpassing statuses wereopenclaw/dependency-reviewand its combinedopenclaw/ci-gate: a repository admin or active SecOps member must approve this revision’s dependency change. This is not a claim that all required gates are green.ClawSweeper’s current-head review reports no actionable code findings, confirms the runtime/protocol approach and resolved relay dependency, and retains the same approval gate. The PR remains open, with no auto-merge enabled.
Earlier validation and proof limitations
The initial full Codex suite ran 5,486 passing, 10 failing and 10 skipped tests. Focused follow-ups fixed all ten: version parity, the native launcher’s new diagnostic, dropped shell arguments in the HTTP fixture, and an isolated native test’s inherited certificate environment. Assertions, production permissions and timeouts were not weakened. A later audio-fixture type failure was fixed by explicitly typing valid JSON variants; extension-test typecheck and all 25 protocol-validator tests passed. The local full suite was not rerun merely to repeat passing work.
The prior published head
9fe8974589c5657ee79660a5e48de9c6ab84f368also has a successful hosted CI check from run 44182663362. Earlier Darwin tooling EPERM is not claimed as a code repair; current-head evidence above supersedes that prior-head CI result.ClawSweeper also asks for installed-Gateway live discovery, turn completion and stable-upgrade evidence. Those flows were not performed. The native binary, separate HTTPS and direct old/new validator evidence support this scoped compatibility change, but do not prove live entitlement, a live GPT-6.2 turn, or a complete installed-Gateway upgrade. No such proof is claimed.
Credit: @VACInc reported the missing models and specified this upgrade and its regression coverage. @bdjben authored the catalog relay repair now landed in #197768; this PR builds on it and adds native discovery and cleanup proof.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by