Skip to content

Carry native Codex account-model support into the pinned release - #127395

Merged
pash-openai merged 4 commits into
sjf_openclaw_2026-07-31from
pash/codex-native-future-models-release
Aug 21, 2026
Merged

pash-openai merged 4 commits into
sjf_openclaw_2026-07-31from
pash/codex-native-future-models-release

Conversation

@pash-openai

Copy link
Copy Markdown
Contributor

Bring the narrowly scoped native Codex model-discovery and account-authentication fix onto the pinned release without advancing the rest of OpenClaw. Explicit provider credentials, custom endpoints, route compatibility, and configured reasoning capabilities remain protected.

@pash-openai
pash-openai requested a review from a team as a code owner August 21, 2026 19:02
@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-21T19:05:52.867476Z 8e82453 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 21, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 21, 2026, 3:07 PM ET / 19:07 UTC.

ClawSweeper review

What this changes

The PR lets an explicitly selected Codex runtime discover and authenticate an otherwise unlisted OpenAI model when OpenClaw has no host credential to honor.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for a focused correction: the fallback claims GPT-5.6 reasoning and image capabilities for any unlisted Codex-account model while its own comment says that account-specific catalog data is unavailable. The PR is still necessary for the pinned release, but that capability claim can make an unsupported setting selectable before the native runtime runs.

Priority: P1
Reviewed head: 8e824535a20877a7da377d358ce5a4171fc33eb6

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused route tests support the intended handoff, but the patch has a blocking capability-metadata defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply; focused tests are present but no live account proof was assessed.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply; focused tests are present but no live account proof was assessed.
Evidence reviewed 6 items Unsupported capability claim: The new unlisted-model branch declares image input and a fixed reasoning-effort list through Max even though the preceding comment states the account-scoped catalog is unavailable.
Thinking policy consumes the claim as authoritative: For the Codex ChatGPT transport, a populated supportedReasoningEfforts list becomes the complete selectable thinking profile; it is not treated as a speculative fallback.
Current main does not already contain this backport: Current main returns undefined for unlisted models after the known-model cases, and its route-auth deferral remains limited to multiple routes; the central release-backport behavior is not redundant.
Findings 1 actionable finding [P1] Do not declare GPT-5.6 capabilities for an unlisted model
Security None None.

How this fits together

OpenAI model routing resolves a transport and credential owner before an agent harness runs. The Codex harness can then use its native account for compatible first-party models instead of requiring an OpenClaw-managed credential.

flowchart LR
  A[Selected OpenAI model] --> B[Model route policy]
  B --> C{Host credential available?}
  C -->|No| D[Codex native account]
  C -->|Yes| E[Configured OpenAI route]
  D --> F[Model capability metadata]
  E --> F
  F --> G[Agent run]
Loading

Before merge

  • Do not declare GPT-5.6 capabilities for an unlisted model (P1) - This branch applies a fixed image-capable, Max-capable GPT-5.6 profile to every unknown model while the catalog is unavailable. resolveOpenAICodexThinkingProfile treats this effort list as authoritative, so an account-only model without max can be offered and sent an unsupported setting instead of letting the native runtime decide. Materialize these fields from the native catalog, or use neutral fallback metadata.
  • Resolve merge risk (P1) - An account-only model without GPT-5.6's capabilities can be offered image input or Max reasoning before its native catalog is known.
  • Resolve merge risk (P1) - The required direct check of the pinned Codex runtime contract could not be completed because the sibling source checkout is unavailable.
  • Complete next step (P2) - The PR has a concrete maintainer-owned correction and an unavailable required Codex-contract check; it is not a safe repair-lane candidate.

Findings

  • [P1] Do not declare GPT-5.6 capabilities for an unlisted model — extensions/openai/openai-chatgpt-provider.ts:347-353
Agent review details

Security

None.

PR surface

Source +29, Tests +78. Total +107 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 33 4 +29
Tests 3 78 0 +78
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 111 4 +107

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Use neutral unknown-model metadata (recommended)
    Keep the native-account handoff but stop synthesizing GPT-5.6 image and reasoning capabilities for an account model whose catalog row is unavailable.
  2. Pause the backport
    Defer this release-branch change until the pinned Codex model-list contract can prove that every eligible unlisted model supports the advertised capabilities.

Technical review

Best possible solution:

Preserve the no-host-credential handoff, but materialize unknown-model capabilities only from the native catalog or use a neutral fallback that does not advertise unsupported inputs or reasoning levels.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: select an unlisted model with the Codex runtime and no host credential; the new resolver supplies a fixed Max-capable metadata profile before native catalog discovery.

Is this the best way to solve the issue?

No. The native-account handoff is the right boundary, but copying GPT-5.6 capabilities to every unknown model contradicts the unavailable-catalog premise; use neutral or catalog-derived metadata instead.

Full review comments:

  • [P1] Do not declare GPT-5.6 capabilities for an unlisted model — extensions/openai/openai-chatgpt-provider.ts:347-353
    This branch applies a fixed image-capable, Max-capable GPT-5.6 profile to every unknown model while the catalog is unavailable. resolveOpenAICodexThinkingProfile treats this effort list as authoritative, so an account-only model without max can be offered and sent an unsupported setting instead of letting the native runtime decide. Materialize these fields from the native catalog, or use neutral fallback metadata.
    Confidence: 0.95

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 87d02a908976.

Labels

Label changes:

  • add P1: The branch can expose and send unsupported model capability settings on a real provider-authentication path.
  • add merge-risk: 🚨 auth-provider: It changes when a native Codex account may replace a previously rejected host-auth route.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply; focused tests are present but no live account proof was assessed.

Label justifications:

  • P1: The branch can expose and send unsupported model capability settings on a real provider-authentication path.
  • merge-risk: 🚨 auth-provider: It changes when a native Codex account may replace a previously rejected host-auth route.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply; focused tests are present but no live account proof was assessed.

Evidence

What I checked:

Likely related people:

  • pash-openai: Authored the release-base native-account fix and the current follow-up across the Codex harness, OpenAI model resolver, and route-auth selector. (role: recent area contributor; confidence: high; commits: 0e374f8d40c6, 8e824535a208; files: extensions/codex/harness.ts, extensions/openai/openai-chatgpt-provider.ts, src/agents/provider-model-route-auth.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the speculative GPT-5.6 capability profile from the unknown-model path and add regression coverage for an account model without Max or image support.
  • Verify the resulting path against the pinned Codex 0.146.0 model-list/runtime contract.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@pash-openai
pash-openai merged commit b2de68f into sjf_openclaw_2026-07-31 Aug 21, 2026
118 of 121 checks passed
@pash-openai
pash-openai deleted the pash/codex-native-future-models-release branch August 21, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling extensions: codex extensions: openai maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant