Skip to content

fix(openai): show all GPT-5.6 Sol thinking levels - #121865

Merged
steipete merged 1 commit into
mainfrom
fix/sol-thinking-levels-pr
Aug 11, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/sol-thinking-levels-pr

Conversation

@steipete

@steipete steipete commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users selecting GPT-5.6 Sol with the native Codex runtime could see only a partial thinking picker when ChatGPT model discovery returned an incomplete non-empty effort list. Sol supports low, medium, high, xhigh, max, and ultra, but a partial observation could hide valid levels from the Control UI.

Why This Change Was Made

OpenAI model capability facts had drifted across the provider catalog, thinking policy, and Codex runtime. This change makes the OpenAI route contract the canonical owner for GPT-5.6 variant capabilities, merges partial live observations without letting them erase known levels, preserves explicit empty catalogs, and enforces each variant's ceiling (Luna remains capped at Max).

The Codex app-server bridge now validates against the selected model's provider-owned supportedReasoningEfforts instead of maintaining a second Sol/Terra/Luna capability table. Route behavior remains unchanged: direct OpenAI paths clamp logical Ultra to Max, while native Codex paths preserve literal Ultra only when model metadata advertises it.

Upstream contract: OpenAI Codex lists Sol's six efforts in models.json.

Provenance: The split capability ownership was introduced during #98021 (code and PR author @anyech / JC; squash merged by @steipete on 2026-07-10). Later provider refactoring carried forward the assumption that any non-empty live list was complete.

User Impact

GPT-5.6 Sol users now see the complete picker in canonical order:

Off → Low → Medium → High → Extra high → Maximum → Ultra

Partial live catalog responses no longer silently remove valid options. Terra receives the same protection, while Luna cannot be widened beyond Max by a bad observation.

Evidence

Before — picker ends at Maximum After — Ultra is available
Before: GPT-5.6 Sol effort picker ending at Maximum After: GPT-5.6 Sol effort picker with Ultra selected

Focused verification on commit 1908802ce38:

  • OpenAI provider/policy regression suites: 134 passed
  • Codex reasoning and route mapping cases: 17 passed
  • Deterministic Control UI screenshot flow: 1 passed
  • pnpm tsgo:extensions: passed
  • pnpm tsgo:extensions:test: passed
  • Targeted oxlint: 0 warnings, 0 errors
  • Changed-file formatting and git diff --check: passed
  • Independent final review: approved with no blocking findings

The complete Codex lifecycle file also ran all affected tests successfully; its aggregate remains 138/140 because two unrelated existing copy assertions for Skill Workshop/message guidance fail on current main (the received text differs only in wording/capitalization).

@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 1:04 AM ET / 05:04 UTC.

ClawSweeper review

What this changes

This PR centralizes GPT-5.6 reasoning-effort capabilities in the OpenAI route contract so incomplete ChatGPT model metadata cannot hide Sol or Terra levels while Luna remains capped at Max.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this protected maintainer PR open for a final upstream Codex contract check. The source path and supplied before/after UI proof support the repair, but the required sibling Codex checkout was unavailable for independent confirmation.

Priority: P2
Reviewed head: 1908802ce38e2e8cb0b1b9a4b78e4e5f8ecb68a7
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has coherent source and visual evidence, with the pinned upstream Codex contract still requiring maintainer verification.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its body nevertheless includes direct before/after picker screenshots.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its body nevertheless includes direct before/after picker screenshots.
Evidence reviewed 5 items Current-main behavior: Current main treats every non-empty ChatGPT effort list as authoritative, so a partial list can omit Ultra from the native picker.
Canonical proposed owner: The branch defines variant ceilings in the OpenAI route contract and merges partial observations without allowing Luna to gain Ultra.
Consumers and regression coverage: Catalog normalization and the native bridge consume the resolved metadata; focused cases cover partial lists, explicit empty lists, and Luna's Max ceiling.
Findings None None.
Security None None.

How this fits together

OpenAI model discovery feeds the provider catalog used by the thinking picker and the native Codex app-server. The resolved capability list determines what users can choose and what effort is sent to the runtime.

flowchart LR
  A[ChatGPT model catalog] --> B[OpenAI route contract]
  C[Known GPT-5.6 capabilities] --> B
  B --> D[Resolved effort list]
  D --> E[Thinking picker]
  D --> F[Native Codex bridge]
  F --> G[App-server request]
Loading

Decision needed

Question Recommendation
Does the shipped @openai/codex 0.147.0 contract still advertise Sol and Terra through Ultra and Luna only through Max? Verify the pinned Codex contract: Inspect the 0.147.0 model metadata and merge when it matches the branch's three model ceilings.

Why: The patch intentionally bases visible native capability limits on that external runtime contract, but this reviewer could not inspect the required sibling Codex source.

Before merge

  • Resolve merge risk (P2) - The branch replaces native GPT-5.6 fallback tables with provider metadata; merge should wait for confirmation that the pinned Codex model contract still matches the Sol, Terra, and Luna ceilings.
  • Resolve merge risk (P1) - Production code grows by 27 lines while tests shrink by 57; the canonical capability matrix replaces duplicate bridge policy, and storing per-model ceilings elsewhere would not be net-neutral.
  • Complete next step (P2) - A maintainer must verify the external Codex capability contract; there is no safe autonomous code repair to perform on this already coherent branch.
Agent review details

Security

None.

PR surface

Source +27, Tests -57. Total -30 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 5 113 86 +27
Tests 4 75 132 -57
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 188 218 -30

Review metrics

Metric Value Why it matters
Production vs test LOC production +27, tests -57 The branch deletes duplicated native-runtime capability tables while adding one canonical provider capability matrix.

Stored data model

Persistent data-model change detected: vector/embedding metadata: extensions/codex/src/app-server/thread-lifecycle.test.ts, vector/embedding metadata: extensions/openai/provider-policy-api.test.ts, vector/embedding metadata: extensions/openai/thinking-policy.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Confirm the provider contract before merge (recommended)
    Verify the pinned Codex model metadata and the exact head's checks before accepting the new authoritative capability matrix.

Technical review

Best possible solution:

Keep the route contract as the single capability owner, confirm the pinned Codex model metadata, then merge only after exact-head checks are green.

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

Yes, source-reproducible: give current main's ChatGPT route a non-empty partial Sol list such as low/high, and its policy exposes only that list; the branch adds coverage for the restored levels.

Is this the best way to solve the issue?

Unclear: centralizing capabilities in the OpenAI owner is the cleanest design, but the exact Codex contract supplying those limits still needs direct confirmation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9327c10d2bdc.

Labels

Label changes:

  • add P2: The PR repairs an OpenAI picker and native runtime capability regression with bounded user impact.
  • add merge-risk: 🚨 compatibility: Existing native GPT-5.6 fallback behavior changes to depend on provider-owned capability metadata.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. This maintainer PR is exempt from the external-contributor proof gate; its body nevertheless includes direct before/after picker screenshots.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its body nevertheless includes direct before/after picker screenshots.

Label justifications:

  • P2: The PR repairs an OpenAI picker and native runtime capability regression with bounded user impact.
  • merge-risk: 🚨 compatibility: Existing native GPT-5.6 fallback behavior changes to depend on provider-owned capability metadata.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer PR is exempt from the external-contributor proof gate; its body nevertheless includes direct before/after picker screenshots.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. This maintainer PR is exempt from the external-contributor proof gate; its body nevertheless includes direct before/after picker screenshots.

Evidence

What I checked:

  • Current-main behavior: Current main treats every non-empty ChatGPT effort list as authoritative, so a partial list can omit Ultra from the native picker. (extensions/openai/thinking-policy.ts:93, 9327c10d2bdc)
  • Canonical proposed owner: The branch defines variant ceilings in the OpenAI route contract and merges partial observations without allowing Luna to gain Ultra. (extensions/openai/model-route-contract.ts:95, 1908802ce38e)
  • Consumers and regression coverage: Catalog normalization and the native bridge consume the resolved metadata; focused cases cover partial lists, explicit empty lists, and Luna's Max ceiling. (extensions/openai/openai-provider.ts:433, 1908802ce38e)
  • Observed UI result: Prepared before/after screenshots directly show Sol's picker changing from Maximum to Ultra. (1908802ce38e)
  • Codex dependency gate: The Codex extension ships @openai/codex 0.147.0 and passes resolved effort metadata to the app-server; sibling ../codex is absent and network resolution prevented cloning it, so the upstream model contract was not independently inspected. (extensions/codex/package.json:11, 9327c10d2bdc)

Likely related people:

  • steipete: Introduced the current shared OpenAI route-contract file in recent main history and is connected to this provider/runtime boundary. (role: recent area contributor; confidence: high; commits: 76b6496f34eb; files: extensions/openai/model-route-contract.ts)
  • anyech: The supplied merged GPT-5.6 Ultra history identifies @anyech as the original author of the native capability work this repair refines. (role: feature contributor; confidence: medium; commits: 59e95fe3fd8d)

Rank-up moves

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

  • Inspect the shipped Codex 0.147.0 model metadata for the three variant ceilings.
  • Wait for exact-head CI before merge.

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.

Copy link
Copy Markdown
Contributor Author

Pinned Codex contract verified by @steipete on the reviewed head 1908802ce38e2e8cb0b1b9a4b78e4e5f8ecb68a7.

  • extensions/codex/package.json pins @openai/codex 0.147.0.
  • Fetched the exact upstream rust-v0.147.0 tag (be6e8eac029b183056b7e4402879f15d2c85f61b).
  • Its codex-rs/models-manager/models.json declares:
    • gpt-5.6-sol: low, medium, high, xhigh, max, ultra
    • gpt-5.6-terra: low, medium, high, xhigh, max, ultra
    • gpt-5.6-luna: low, medium, high, xhigh, max

This exactly matches the canonical ceilings in the PR. Exact-head required CI is green, including openclaw/ci-gate. No source change is required.

@steipete
steipete merged commit 46bdbe5 into main Aug 11, 2026
124 checks passed
@steipete
steipete deleted the fix/sol-thinking-levels-pr branch August 11, 2026 07:28

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: codex extensions: openai maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants