Skip to content

feat(openai): backport GPT-5.6 to 2026.6.34 - #116626

Merged
RomneyDa merged 9 commits into
extended-stable/2026.6.33from
josh/openclaw-6f0-gpt56-extended-stable
Jul 31, 2026
Merged

RomneyDa merged 9 commits into
extended-stable/2026.6.33from
josh/openclaw-6f0-gpt56-extended-stable

Conversation

@jalehman

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenClaw 2026.6.34 needs to recognize and route the released GPT-5.6 Sol, Terra, and Luna models across direct OpenAI and ChatGPT/Codex subscription paths. Without this backport, the extended-stable release lacks the model catalog, reasoning, transport, setup defaults, and bundled Codex harness support required to use those models.

Why This Change Was Made

This backports the GPT-5.6 support and default migrations intended for 2026.6.34, plus the required @openai/codex 0.142.4 harness/protocol update and subsequent catalog hardening. It preserves explicit GPT-5.5 selections and fallbacks, keeps million-token active context an explicit opt-in, and deliberately excludes GPT-5.6 Ultra.

Source provenance:

User Impact

Fresh direct-API setup defaults to openai/gpt-5.6, which resolves to Sol. Fresh ChatGPT/Codex subscription setup defaults to openai/gpt-5.6-sol; entitled Terra and Luna models are surfaced by live discovery. Existing explicit GPT-5.5 primaries and fallbacks remain unchanged.

Direct GPT-5.6 rows retain the native 1.05M context window but default active runtime context to 272K. Current OpenAI pricing metadata is included for Sol, Terra, and Luna. No GPT-5.6 Ultra route is added.

The bundled @openclaw/[email protected] package pins @openai/[email protected] and includes the generated app-server protocol needed by the new models.

Evidence

Rollback is the six commits in this PR; no state or protocol-version migration is introduced.

steipete and others added 6 commits July 30, 2026 18:12
* feat(openai): add GPT-5.6 series support

* docs: refresh map for GPT-5.6

* fix(openai): preserve GPT-5.6 thinking metadata

* fix(codex): sync managed app server version

* fix(codex): sync managed app server version

* fix(openai): account for GPT-5.6 cache writes

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit c52583a)
Adapted for the extended-stable maintenance branch from the fresh-setup and active-default migrations. Existing explicit primaries remain unchanged, GPT-5.5 stays available as an explicit recovery choice, and Ultra is intentionally excluded.

(cherry picked from commit ab5d143)
(cherry picked from commit fa77fe1)
Adapted from upstream follow-up 9f13f9b.
(cherry picked from commit 9f13f9b)
Adapted from upstream hardening a5d1d9e.
(cherry picked from commit a5d1d9e)
@jalehman
jalehman requested a review from a team as a code owner July 31, 2026 02:13
@jalehman jalehman self-assigned this Jul 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/codex/npm-shrinkwrap.json
  • extensions/codex/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 31, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: openai extensions: codex plugin: migrate-hermes size: XL maintainer Maintainer-authored PR labels Jul 31, 2026
@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes are blocked

OpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph.

Detected dependency graph changes:

  • extensions/codex/npm-shrinkwrap.json changed.
  • pnpm-lock.yaml changed.
  • extensions/codex/package.json changed dependencies.

Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:

  • extensions/codex/package.json changed dependencies.

Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed.

To remove lockfile changes, restore them from the target branch:

git fetch origin
git checkout 'origin/extended-stable/2026.6.33' -- 'extensions/codex/npm-shrinkwrap.json' 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git push

If this PR intentionally needs a dependency graph change, ask a repository admin or member of @openclaw/openclaw-secops to comment:

/allow-dependencies-change

The action will approve the current head SHA (6a8bea425343676410657f90b3284dcb0569d217) when it reruns. A later push requires a fresh approval.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 31, 2026, 2:50 AM ET / 06:50 UTC.

ClawSweeper review

What this changes

This PR backports GPT-5.6 Sol, Terra, and Luna catalog support, fresh-setup defaults, reasoning and pricing metadata, and the bundled Codex app-server upgrade to the extended-stable/2026.6.33 release branch.

Merge readiness

⚠️ Needs maintainer review before merge - 8 items remain

Keep this PR open for human release/security review. Its extended-stable backport remains useful, but the branch both requires exact-head authorization for its managed Codex dependency update and appears to reintroduce an offline Luna fallback that the merged hardening deliberately avoided for unentitled OAuth accounts.

Priority: P2
Reviewed head: 6a8bea425343676410657f90b3284dcb0569d217
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The backport has substantial focused validation and packaging evidence, but it needs one entitlement-safe catalog correction and the required managed-dependency authorization before it is merge-ready.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The PR body supplies after-fix package/tarball verification, focused runtime coverage, Testbox typecheck and build evidence, and the supplied context records a successful real-behavior-proof gate; the remaining blockers are catalog correctness and dependency authorization.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR body supplies after-fix package/tarball verification, focused runtime coverage, Testbox typecheck and build evidence, and the supplied context records a successful real-behavior-proof gate; the remaining blockers are catalog correctness and dependency authorization.
Evidence reviewed 5 items Backport provenance: The PR explicitly cherry-picks the merged GPT-5.6 support, fresh-default, active-default, context-cap, and discovery-hardening work from current main into an extended-stable branch; the supplied related PRs identify their merged implementation commits.
Offline entitlement contract: The merged hardening work states that static OAuth fallback rows are hints rather than entitlement claims: only the proven Sol route remains static and live discovery adds other entitled GPT-5.6 tiers. This branch adds Luna to the Codex fallback list, which can show an unavailable subscription model during discovery failure.
Dependency authorization remains unresolved: The dependency guard identifies an exact managed-package update from @openai/codex 0.139.0 to 0.142.4, with matching shrinkwrap and lockfile changes, and requires an admin or security authorization for the current head. The previous ClawSweeper review raised this same blocker, and the supplied comments show no authorization for head 6a8bea4.
Findings 2 actionable findings [P1] Do not advertise Luna in the offline Codex fallback
[P1] Obtain authorization for the bundled Codex dependency update
Security Needs attention Managed Codex dependency update lacks exact-head authorization: Updating @openai/codex changes the bundled app-server executable and platform packages; the dependency guard requires an authorized review for the current PR head before merge.

How this fits together

OpenClaw’s OpenAI and Codex plugins turn onboarding choices and model references into a provider catalog, authentication route, and app-server transport. This change affects fresh OpenAI setup, offline model discovery, runtime reasoning settings, and the bundled Codex package that executes subscription-backed requests.

flowchart LR
  A[OpenAI or Codex setup] --> B[Default model selection]
  B --> C[OpenAI provider catalog]
  D[Live Codex model discovery] --> C
  E[Offline fallback catalog] --> C
  C --> F[Auth and transport routing]
  F --> G[Bundled Codex app server]
  G --> H[Agent response and usage accounting]
Loading

Decision needed

Question Recommendation
Should the extended-stable release accept the managed @openai/[email protected] dependency update after the offline Luna fallback is corrected and the exact resulting head is authorized? Correct and authorize the backport: Remove Luna from the static Codex fallback, rerun the focused catalog proof, and have a repository admin or security owner authorize the exact updated head.

Why: This is a release-branch dependency and authentication-routing decision governed by the repository’s dependency guard; code review cannot substitute for the required security or release-owner approval.

Before merge

  • Do not advertise Luna in the offline Codex fallback (P1) - The merged hardening path keeps only Sol in static subscription fallback because offline rows are not entitlement proof; this new Luna row appears whenever discovery is unavailable and can let an unentitled account select a model that will fail later. Keep Luna live-discovery-only.
  • Obtain authorization for the bundled Codex dependency update (P1) - This changes the managed @openai/codex package and both lock artifacts from 0.139.0 to 0.142.4. The repository dependency guard requires repository-admin or security approval for the exact current head before this dependency graph can merge.
  • Resolve security concern: Managed Codex dependency update lacks exact-head authorization - Updating @openai/codex changes the bundled app-server executable and platform packages; the dependency guard requires an authorized review for the current PR head before merge.
  • Resolve merge risk (P1) - The bundled @openai/codex upgrade changes the locked dependency graph and must not merge without repository-admin or security authorization for the exact current head.
  • Resolve merge risk (P2) - An offline Codex fallback that advertises Luna can surface a subscription model the account is not entitled to use when live discovery is unavailable, producing a confusing runtime failure instead of an accurate static picker.
  • Resolve merge risk (P1) - Fresh setup defaults and preserved existing selections are compatibility-sensitive; the corrective catalog change should retain the branch’s tested preservation behavior.
  • Complete next step (P2) - A release or security owner must decide whether to authorize the corrected exact dependency-update head for this extended-stable branch.

Findings

  • [P1] Do not advertise Luna in the offline Codex fallback — extensions/codex/provider-catalog.ts:37-45
  • [P1] Obtain authorization for the bundled Codex dependency update — extensions/codex/package.json:11
  • [medium] Managed Codex dependency update lacks exact-head authorization — extensions/codex/package.json:11
Agent review details

Security

Needs attention: The patch updates a managed executable dependency and resolved lock graph without the exact-head security or admin authorization required by the repository guard.

PR surface

Source +733, Tests +758, Docs +56, Config 0, Other 0. Total +1547 across 78 files.

View PR surface stats
Area Files Added Removed Net
Source 39 867 134 +733
Tests 28 807 49 +758
Docs 9 102 46 +56
Config 1 1 1 0
Generated 0 0 0 0
Other 1 29 29 0
Total 78 1806 259 +1547

Review metrics

Metric Value Why it matters
Fresh setup defaults 2 route-specific defaults changed API-key setup moves to openai/gpt-5.6, while Codex OAuth setup moves to openai/gpt-5.6-sol; both must preserve established user selections on upgrade.
Managed Codex package 1 direct dependency upgraded: 0.139.0 → 0.142.4 This updates the app-server executable and resolved dependency graph used by subscription-backed model routing.

Stored data model

Persistent data-model change detected: persistent cache schema: src/agents/openai-transport-stream.test.ts, serialized state: extensions/openai/openai-provider.test.ts, vector/embedding metadata: extensions/codex/provider.test.ts, vector/embedding metadata: extensions/codex/src/app-server/thread-lifecycle.test.ts, vector/embedding metadata: extensions/openai/openai-chatgpt-provider.test.ts, vector/embedding metadata: extensions/openai/openclaw.plugin.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Restore entitlement-safe fallback behavior (recommended)
    Remove the static Luna fallback and retain live discovery as the only path that exposes additional subscription tiers, then rerun the focused Codex/OpenAI catalog tests.
  2. Authorize the exact managed dependency update
    After the corrective push, obtain repository-admin or security authorization for that exact head before merging its @openai/codex manifest, shrinkwrap, and lockfile changes.
  3. Pause the extended-stable backport
    Do not take the dependency and auth-routing change into this release branch if the release owner cannot approve its upgrade and entitlement behavior.

Technical review

Best possible solution:

Keep the release-branch backport narrowly aligned with the merged mainline contract: retain Sol as the static subscription fallback, add Terra and Luna only through entitled live discovery, then obtain exact-head authorization for the managed Codex dependency update before release inclusion.

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

Yes—source inspection gives a high-confidence path: make Codex live discovery unavailable, open the static subscription catalog, and observe that this branch offers gpt-5.6-luna despite the merged entitlement-safe contract reserving additional tiers for live discovery.

Is this the best way to solve the issue?

No—the release backport should not restore a static Luna subscription row. The narrower maintainable solution is Sol-only offline fallback plus live discovery for entitled Terra and Luna accounts, matching the merged hardening path.

Full review comments:

  • [P1] Do not advertise Luna in the offline Codex fallback — extensions/codex/provider-catalog.ts:37-45
    The merged hardening path keeps only Sol in static subscription fallback because offline rows are not entitlement proof; this new Luna row appears whenever discovery is unavailable and can let an unentitled account select a model that will fail later. Keep Luna live-discovery-only.
    Confidence: 0.95
  • [P1] Obtain authorization for the bundled Codex dependency update — extensions/codex/package.json:11
    This changes the managed @openai/codex package and both lock artifacts from 0.139.0 to 0.142.4. The repository dependency guard requires repository-admin or security approval for the exact current head before this dependency graph can merge.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 8d7ff3c04c89.

Labels

Label justifications:

  • P2: The PR adds a valuable release-branch model backport, but the known blockers are bounded compatibility and authorization work rather than a live emergency.
  • merge-risk: 🚨 compatibility: The PR changes fresh setup defaults and offline model catalog behavior for existing OpenAI and Codex configurations.
  • merge-risk: 🚨 auth-provider: Offline Codex catalog rows determine which subscription-backed models operators can select when live entitlement discovery is unavailable.
  • merge-risk: 🚨 security-boundary: The branch upgrades the managed Codex executable and its locked dependency graph, which repository policy requires an authorized review to accept.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (linked_artifact): The PR body supplies after-fix package/tarball verification, focused runtime coverage, Testbox typecheck and build evidence, and the supplied context records a successful real-behavior-proof gate; the remaining blockers are catalog correctness and dependency authorization.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies after-fix package/tarball verification, focused runtime coverage, Testbox typecheck and build evidence, and the supplied context records a successful real-behavior-proof gate; the remaining blockers are catalog correctness and dependency authorization.

Evidence

Security concerns:

  • [medium] Managed Codex dependency update lacks exact-head authorization — extensions/codex/package.json:11
    Updating @openai/codex changes the bundled app-server executable and platform packages; the dependency guard requires an authorized review for the current PR head before merge.
    Confidence: 0.99

What I checked:

  • Backport provenance: The PR explicitly cherry-picks the merged GPT-5.6 support, fresh-default, active-default, context-cap, and discovery-hardening work from current main into an extended-stable branch; the supplied related PRs identify their merged implementation commits. (extensions/openai/openai-provider.ts:1, c52583a02270)
  • Offline entitlement contract: The merged hardening work states that static OAuth fallback rows are hints rather than entitlement claims: only the proven Sol route remains static and live discovery adds other entitled GPT-5.6 tiers. This branch adds Luna to the Codex fallback list, which can show an unavailable subscription model during discovery failure. (extensions/codex/provider-catalog.ts:37, a5d1d9e473ba)
  • Dependency authorization remains unresolved: The dependency guard identifies an exact managed-package update from @openai/codex 0.139.0 to 0.142.4, with matching shrinkwrap and lockfile changes, and requires an admin or security authorization for the current head. The previous ClawSweeper review raised this same blocker, and the supplied comments show no authorization for head 6a8bea4. (extensions/codex/package.json:11, 6a8bea425343)
  • Current-main feature owners: The current-main lineage is concentrated in the original GPT-5.6 feature commit and its follow-up defaults, hardening, and context-cap commits; their merged PRs provide the appropriate technical context for this release-branch backport. (extensions/openai/default-models.ts:1, ab5d143d59dd)
  • Local inspection limitation: Read-only shell inspection could not start because the environment rejected loopback setup before executing commands, so the verdict relies on the complete supplied PR diff, review history, checks, and related merged-PR evidence rather than an independent checkout read.

Likely related people:

  • steipete: Authored the merged mainline GPT-5.6 support, default-selection, catalog hardening, and context-budget work that this PR cherry-picks into the extended-stable branch. (role: feature owner and upstream implementation author; confidence: high; commits: c52583a02270, ab5d143d59dd, a5d1d9e473ba; files: extensions/openai/openai-provider.ts, extensions/openai/default-models.ts, extensions/codex/provider-catalog.ts)

Rank-up moves

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

  • Remove the static gpt-5.6-luna Codex fallback and demonstrate unavailable-discovery behavior still lists only the safe Sol subscription route.
  • After the resulting push, obtain repository-admin or security authorization for the exact @openai/codex dependency-update head.

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-07-31T02:18:14.789Z sha 404185a :: found issues before merge. :: [P1] Obtain authorization for the bundled Codex dependency change
  • reviewed 2026-07-31T05:06:37.316Z sha 1e22506 :: found issues before merge. :: [P1] Obtain approval for the managed Codex dependency update
  • reviewed 2026-07-31T05:17:02.376Z sha a3d3e0f :: found issues before merge. :: [P1] Obtain authorization for the bundled Codex dependency update

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime commands Command implementations labels Jul 31, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​openai/​codex@​0.139.0-win32-x64 ⏵ 0.142.472 +2110090 +16100100

View full report

@jalehman

jalehman commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor Author

@vincentkoc The dependency guard is expected here: this backport intentionally updates @openai/codex from 0.139.0 to 0.142.4 for GPT-5.6 harness support, with matching shrinkwrap and workspace lockfile changes. The published package/tarball delta was verified; focused regression proof now passes 360/360 tests, and both autoreview passes were clean. Final exact head is a3d3e0f7cdd22cae5006acdf3863c28bdfa66f4e. If satisfied, please authorize this head with /allow-dependencies-change verified Codex 0.142.4 GPT-5.6 harness backport.

@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa merged commit ebd5d7a into extended-stable/2026.6.33 Jul 31, 2026
92 of 93 checks passed
@RomneyDa
RomneyDa deleted the josh/openclaw-6f0-gpt56-extended-stable branch July 31, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: codex extensions: openai gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: migrate-hermes proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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.

3 participants