Repository navigation
fix(codex): model catalog requests fail through the inference relay - #197768
Conversation
|
🦞👀 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. |
|
Codex review: needs real behavior proof before merge. What this changesAllows bodyless native Codex catalog GET requests through the existing inference relay while preserving account credentials and upstream responses. Example: Codex 0.169.0 requests GET /models?client_version=0.169.0 through its private relay.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR fixes a concrete catalog incompatibility still present on current main, with no introduced correctness defects found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Codex plugin supplies a private loopback relay as the native runtime's provider endpoint; the relay validates requests, forwards them over guarded HTTPS, and streams upstream responses back to Codex. flowchart LR
A[OpenClaw Codex plugin] --> B[Native Codex app server]
B --> C[Private loopback relay]
C --> D[Catalog request validation]
D --> E[Guarded fixed upstream]
E --> F[Native model catalog]
Technical reviewBest possible solution: Retain the narrow catalog branch in the existing relay and shared response writer, preserving native credentials and the separate host-held OAuth restriction. Do we have a high-confidence way to reproduce the issue? The affected-release trace, native GET producer, and current-main POST-only rejection establish the failure path; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch repairs the existing relay owner without another catalog service, credential store, configuration option, or change to inference admission. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ae6b903359e3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +83, Tests +72. Total +155 across 3 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. Review metrics
LabelsLabel changes: No label 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 HistoryReview history (1 earlier review cycle)
Reviewed November 17, 2026, 4:53 PM ET / 21:53 UTC (Revision 2). |
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]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
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]>
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]>
* 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]>
…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]>
…penclaw#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]>
* 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]>
…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) 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) Co-authored-by: RomneyDa <[email protected]>
…197768) Baseline adaptation: Permit only bodyless native GET /models with at most one client_version on the pinned HTTPS relay, under existing resident and current-owner admission, without host OAuth funding; keep POST and pinned transport semantics. (cherry picked from commit ed3230d) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 30c56a238a47e37dd075346bf79c88aa5db02c45)
What Problem This Solves
Fixes repeated model-discovery failures when native Codex sends a catalog GET through OpenClaw's inference relay. The relay currently rejects every non-POST request with a retryable transport failure.
User Impact
Codex-backed sessions can retrieve their model catalog without spending startup or turn time retrying an unsupported method. The catalog request retains the requesting native account's credentials and upstream status.
Why This Change Was Made
Allow only bodyless
GET /models, with either no query or oneclient_versionargument, through the existing fixed-destination relay. Unsupported catalog request shapes return a terminal 400. Discovery keeps relay-lifetime and transport checks without requiring an inference turn; the existing host-held OAuth route restriction remains intact.Evidence
Baseline: all seven new regressions fail on unchanged upstream with the expected HTTP 502 responses.
Candidate: 44 tests pass in
inference-proxy.http.test.tsandinference-proxy.test.ts, exercising real loopback HTTP/TLS and WebSocket transports, account headers, upstream errors, cancellation, and destination restrictions.Independent P0–P2 source review covered the complete change, including the extracted HTTP helpers and the unchanged destination, admission, and cleanup owners; no actionable findings.
No universal latency reduction is claimed. This removes the observed unsupported-method retries; the historical native trace is not a benchmark of every account or Codex version.
Formatting, targeted lint, core type checking, and focused Codex type checking pass.
Validation used isolated local state. Crabbox was unavailable in this environment; no remote-test result is claimed.
Native app-server proof added November 17
At @VACInc’s request, RoboClaw exercised the actual Codex 0.169.0 app-server through OpenClaw’s shipped RPC client and real loopback inference relay. The test logs into an isolated native ChatGPT account using synthetic credentials, lets the native process request its catalog, and checks
model/listfor a model absent from the bundled catalog. The external fetch boundary is mocked; no live account, backend entitlement, or live GPT-6.2 turn is claimed.GET /models?client_version=0.169.0, preserves its synthetic bearer token and account header, and returns the remote-only modelrelay-catalog-onlythroughmodel/list.Reproduction source: native catalog regression, in companion #200784. That checkout also carries the 0.169.0 runtime bump; it is not a claim that these additional tests are committed on this PR’s older base. Both production files in this PR, plus the upstream, dispatch, context, upload, and transport owners, were verified byte-identical between head
7ffffef8f91f28e625fd2b1e488272b2b3fb9c8fand the tested checkout. This PR’s exact-head hosted CI gate and security/dependency checks are green.Native test result summary:
Ben’s original implementation and commits remain unchanged. #200784 will rebase on main after this PR lands, removing the duplicate production change from that PR’s diff. The Codex version bump remains a separate, open-only PR.
Landing assessment
A fresh independent P0–P3 review of this exact three-file candidate and its seven production owners completed with no actionable findings. No hostile behavior, credential exfiltration, or weakening of the existing destination/auth controls was identified in the reviewed changes.
ClawSweeper also reports no code findings; its remaining request is an unmocked live catalog-refresh run. That is a related integration-coverage limitation, not an unrelated CI failure. We do not treat it as a necessary additional prerequisite for this narrow relay repair: the real native-binary red/green test proves the rejected request path, while separate real-HTTPS transport tests cover forwarding, headers, upstream errors and network restrictions. The destination, native credential ownership and backend catalog contract are not replaced by this change. Live ChatGPT entitlement, live GPT-6.2 availability and a fully live end-to-end backend run remain unverified. This assessment does not claim ClawSweeper approved or waive any enforced GitHub check or required review.