Repository navigation
fix(openai): show all GPT-5.6 Sol thinking levels - #121865
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 1:04 AM ET / 05:04 UTC. ClawSweeper reviewWhat this changesThis 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 readinessKeep 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 Review scores
Verification
How this fits togetherOpenAI 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]
Decision needed
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
Agent review detailsSecurityNone. PR surfaceSource +27, Tests -57. Total -30 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Pinned Codex contract verified by @steipete on the reviewed head
This exactly matches the canonical ceilings in the PR. Exact-head required CI is green, including |
|
Merged via squash.
|
Co-authored-by: Amp <[email protected]>
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, andultra, 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
supportedReasoningEffortsinstead 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 → UltraPartial 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
Focused verification on commit
1908802ce38:pnpm tsgo:extensions: passedpnpm tsgo:extensions:test: passedoxlint: 0 warnings, 0 errorsgit diff --check: passedThe 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).