Repository navigation
feat(openai): add GPT-5.6 series support - #98333
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
|
Codex review: needs changes before merge. Reviewed July 1, 2026, 12:51 AM ET / 04:51 UTC. Summary PR surface: Source +565, Tests +459, Docs +28, Config 0, Other 0. Total +1052 across 46 files. Reproducibility: yes. source inspection shows a metadata-backed model advertising only Review metrics: 3 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Security Review findings
Review detailsBest possible solution: Fix live metadata-backed Do we have a high-confidence way to reproduce the issue? Yes, source inspection shows a metadata-backed model advertising only Is this the best way to solve the issue? No, not yet; provider-owned catalog metadata and shared reasoning normalization are the right layer, but the current normalization condition is too narrow for non-GPT-5.6 live effort metadata. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d68ba5edc598. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +565, Tests +459, Docs +28, Config 0, Other 0. Total +1052 across 46 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 12ddccfaf8
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "contextWindow": 372000, | ||
| "maxTokens": 128000, | ||
| "cost": { "input": 5, "output": 30, "cacheRead": 0.5, "cacheWrite": 6.25 }, | ||
| "thinkingLevelMap": { "xhigh": "xhigh", "max": "max" }, |
There was a problem hiding this comment.
Set GPT-5.6 off mapping to avoid unsupported none
When a GPT-5.6 model is used through the direct openai-responses path with no explicit /think level (or with /think off), applyCommonResponsesParams still emits reasoning: { effort: model.thinkingLevelMap?.off ?? "none" }; these new rows only map xhigh/max, while src/agents/openai-reasoning-effort.ts:35 declares GPT-5.6 support as low through max and not none. That makes ordinary direct API-key calls for gpt-5.6-sol/terra/luna send an unsupported none effort unless the user explicitly chooses an enabled level, so add off: null (or otherwise suppress the default-off payload) for the GPT-5.6 rows and matching dynamic metadata.
Useful? React with 👍 / 👎.
|
Land-ready evidence for
The default remains |
|
@clawsweeper re-review The default-off blocker is fixed in 55fb0995d3. GPT-5.6 now publishes Fresh proof:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 55fb0995d3
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if ( | ||
| clampedReasoning === "minimal" && | ||
| model.provider === "openai" && | ||
| supportsOpenAIReasoningEffort(model, "max") | ||
| ) { |
There was a problem hiding this comment.
Normalize minimal using live effort metadata
When the live Codex/OAuth catalog supplies compat.supportedReasoningEfforts without minimal (for example this same change's test fixture has gpt-5.3-codex-spark supporting only high, and stricter rows can start at medium), /think minimal still returns minimal here because the remap only runs for max-capable GPT-5.6 models. streamSimpleOpenAICodexResponses passes this result straight into the request body, so those newly metadata-backed models still send an unsupported effort instead of the closest supported value; use resolveOpenAIReasoningEffortForModel whenever supported-effort metadata is present, not only when max is supported.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
* 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]>
* 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]>
* 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)
* 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)
* feat(openai): add GPT-5.6 series support (#98333) * 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) * feat(openai): default 2026.6.34 to GPT-5.6 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) * test(codex): update GPT-5.6 media default expectation * feat(openai): keep million-token context opt-in Adapted from upstream follow-up 9f13f9b. (cherry picked from commit 9f13f9b) * fix(openai): harden GPT-5.6 Codex discovery Adapted from upstream hardening a5d1d9e. (cherry picked from commit a5d1d9e) * fix(openai): refresh GPT-5.6 tier pricing * test: align GPT-5.6 default fixtures * test: update remaining GPT-5.6 defaults * fix(openai): correct GPT-5.6 tier pricing --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
* 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)
Closes #98296
Related: #98021 (
ultraorchestration remains separate)What Problem This Solves
OpenClaw does not recognize the limited-preview GPT-5.6 Sol, Terra, and Luna model IDs across its direct OpenAI, ChatGPT/Codex OAuth, simple-completion, and Codex App Server paths. Users with preview access cannot select the models reliably or use their
maxreasoning effort, and stale fallback metadata can route them with the wrong transport or effort.Why This Change Was Made
Add the three public GPT-5.6 model contracts with current preview pricing, 372k context metadata, text/image input, and model-aware
minimal/maxreasoning normalization while keepingopenai/gpt-5.5as the default. Upgrade the Codex App Server package to 0.142.4, refresh its generated protocol schemas and documented model snapshot, and treat live App Server reasoning metadata as authoritative without mistaking synthetic fallback rows for live capability data.User Impact
Organizations with GPT-5.6 preview access can use
openai/gpt-5.6-sol,openai/gpt-5.6-terra, andopenai/gpt-5.6-lunathrough API-key, ChatGPT/Codex OAuth, simple-completion, and Codex App Server workflows.maxis preserved for the series, unsupportedminimalrequests normalize tolow, older/Azure routes retain their prior clamps, and GPT-5.5 remains the default.Evidence
openclaw agent --local --model openai/gpt-5.6-luna --thinking maxreturned the exact expected reply with provideropenai, modelgpt-5.6-luna, harnesscodex, 372000 context tokens,thinking=max, no fallback, and a successful stop.@openai/codex0.142.4model/listdiscovery confirmed the public Sol/Terra/Luna rows and supported efforts; protocol schemas were regenerated from the matchingrust-v0.142.4tag.tbx_01kwdmwncj2atwwfatz3144jkx: 303 focused changed-surface tests passed across OpenAI, agent, Codex, and App Server shards;pnpm tsgo:allpassed.pnpm build, focusedoxlint, andgit diff --checkpassed.