Skip to content

fix(openai): remove duplicate GPT-5.6 picker entry - #122178

Merged
steipete merged 4 commits into
mainfrom
steipete/duplicate-gpt-5-6-model-entry-cd3a1d
Aug 11, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/duplicate-gpt-5-6-model-entry-cd3a1d

Conversation

@steipete

@steipete steipete commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where the Team model picker could show both bare GPT-5.6 and GPT-5.6 Sol as separate OpenAI rows even though the bare API alias routes to Sol.

Sanitized observed picker text:

  • Before: GPT-5.6 · OpenClaw | GPT-5.6 Luna · Codex | GPT-5.6 Sol · Codex | GPT-5.6 Terra · Codex
  • After: GPT-5.6 Luna · Codex | GPT-5.6 Sol · Codex | GPT-5.6 Terra · Codex

The live Team screenshot/sidebar was not uploaded because it contains private Team session data.

Why This Change Was Made

OpenClaw now uses openai/gpt-5.6-sol as the canonical picker, fresh default, and persisted config identity. The bundled OpenAI catalog no longer publishes the duplicate bare row, GPT-5.5 replacement metadata points to Sol, and the existing doctor model-ref canonicalization owner rewrites shipped bare OpenAI refs across primary, fallback, policy, model-map, and provider-catalog surfaces while preserving auth-profile suffixes and merge semantics. GitHub Copilot refs remain unchanged.

The public direct-API input openai/gpt-5.6 remains accepted and response-equivalent to Sol until doctor repairs persisted config. Official OpenAI documentation states that the gpt-5.6 alias routes requests to GPT-5.6 Sol: https://developers.openai.com/api/docs/models/gpt-5.6-sol. Upstream Codex catalog and model/list source expose the named Sol, Terra, and Luna roster, with Sol as the first picker-visible default.

One fresh OpenAI default changes from the alias to canonical Sol; no new config key or default surface is added. Doctor migration rewrites existing shipped refs. The PR also carries a one-line generated Plugin SDK baseline rider required because current main's newly split agent-harness contract file was stale; the complete contract directory passes after the exact hash refresh.

User Impact

Users see one row per GPT-5.6 tier: Sol, Terra, and Luna. Fresh OpenAI setup selects Sol explicitly, existing bare references migrate safely through openclaw doctor --fix, and callers that intentionally send the documented bare direct-API alias continue to work.

Release-note context: removes the user-visible duplicate GPT-5.6 picker entry, migrates existing bare OpenAI refs to Sol, and preserves the accepted direct-API alias.

Evidence

  • Focused Vitest: OpenAI/default/onboarding 29/29 and 93/93; doctor migration 176/176; gateway picker/routes 25/25; inference detection 7/7; install assertions 30/30; explicit bare-alias compatibility 1 passed.
  • Docs: inventory completed; MDX 769 files passed; 6,430 internal links with 0 broken; 1,166 config examples validated.
  • node scripts/check-changed.mjs --base 6792921deabe98d1ac2d85b480366c42748b0760 --timed: all classified local fallback lanes passed. No remote Testbox lease/run was created because no Crabbox provider was ready.
  • pnpm build: passed in 3m14.8s; all 152 public Plugin SDK subpaths verified; no ineffective dynamic-import warning.
  • Source-blind built CLI on fresh temporary state: doctor rewrote the primary and merged the model-map alias into Sol; models list --all --provider openai --json returned exactly three named GPT-5.6 rows (Luna, Sol, Terra) and no bare row.
  • Fresh project autoreview: TruffleHog clean; no accepted or actionable findings.
  • LOC: production +18/-32 (net -14); tests +209/-80; docs +33/-30; tooling +2/-2; generated baseline +1/-1.
  • Known gap: no authenticated post-fix Team run is claimed. The authenticated Team observation is pre-fix only; deterministic doctor, built-CLI, gateway, and exact-head CI evidence cover the repaired behavior.

AI-assisted implementation and validation were performed with Codex; the maintainer reviewed the resulting diff and evidence.

@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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts commands Command implementations extensions: openai size: M maintainer Maintainer-authored PR labels Aug 11, 2026
@steipete
steipete force-pushed the steipete/duplicate-gpt-5-6-model-entry-cd3a1d branch from 4d52e26 to c0f2a52 Compare August 11, 2026 17:51
@steipete steipete self-assigned this Aug 11, 2026
@steipete
steipete marked this pull request as ready for review August 11, 2026 17:51
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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, 3:05 PM ET / 19:05 UTC.

ClawSweeper review

What this changes

Removes the duplicate bare GPT-5.6 OpenAI picker row, makes Sol the fresh default, and uses Doctor to canonicalize persisted bare OpenAI references.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: current main still exposes both bare GPT-5.6 and Sol, and this maintainer-owned PR is the active repair. No blocking patch defect found; likely related person: steipete (high confidence).

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused net-negative repair with strong migration and CLI evidence, pending maintainer confirmation of the upstream cross-runtime contract.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides built-CLI after-fix Doctor and model-list evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides built-CLI after-fix Doctor and model-list evidence.
Evidence reviewed 5 items Current duplicate source: Current main publishes a bare gpt-5.6 catalog row immediately before the named Sol, Terra, and Luna rows; the PR removes that duplicate identity.
Migration owner: The PR places persisted-reference canonicalization in the existing Doctor traversal, preserving auth-profile suffixes and merging duplicate model-map/catalog entries through its established logic.
Route sibling evidence: Current tests define bare GPT-5.6 as direct-platform-only and assert that Codex transport does not synthesize that alias, while named variants resolve through Codex.
Findings None None.
Security None None.

How this fits together

The bundled OpenAI plugin supplies picker catalog rows and onboarding defaults. Doctor repairs persisted model references before the Gateway lists configured models and runtime routing selects an API-key or Codex path.

flowchart LR
A[Existing OpenAI config] --> B[Doctor migration]
C[Fresh OpenAI setup] --> D[Sol default]
B --> E[OpenAI model catalog]
D --> E
E --> F[Gateway picker]
E --> G[Runtime route]
Loading

Decision needed

Question Recommendation
Should this protected maintainer PR merge after exact-head CI finishes and a maintainer verifies the cited upstream Codex catalog/alias contract? Verify and merge: Confirm the cited upstream roster and alias contract, then merge after exact-head checks are green.

Why: The proposed canonical identity relies on a Codex roster contract that cannot be independently inspected because the required sibling checkout is absent.

Before merge

  • Resolve merge risk (P1) - Fresh setup changes one OpenAI default and Doctor rewrites persisted model identities; a maintainer should confirm the upstream Codex roster/alias contract and wait for the remaining exact-head checks before merge.
Agent review details

Security

None.

PR surface

Source +54, Tests +61, Docs +3, Generated 0, Other 0. Total +118 across 28 files.

View PR surface stats
Area Files Added Removed Net
Source 7 86 32 +54
Tests 12 141 80 +61
Docs 7 33 30 +3
Config 0 0 0 0
Generated 1 1 1 0
Other 1 2 2 0
Total 28 263 145 +118

Review metrics

Metric Value Why it matters
Production versus test delta production +18/-32 (net -14); tests +209/-80 (net +129) The repair is net-negative in production while adding dedicated migration and picker coverage.
Default and migration surface 1 fresh default changed; 1 persisted alias canonicalized Existing OpenAI configuration is modified by Doctor, making upgrade proof material before merge.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor/shared/legacy-config-migrate.test.ts, migration/backfill/repair: src/commands/doctor/shared/legacy-config-migrations.runtime.models.codex.ts, migration/backfill/repair: src/commands/doctor/shared/legacy-config-migrations.runtime.models.refs.ts, migration/backfill/repair: src/commands/doctor/shared/legacy-config-migrations.runtime.models.ts, migration/backfill/repair: src/gateway/server-methods/models-list-result.openai-picker.test.ts, serialized state: src/commands/doctor/shared/legacy-config-migrate.test.ts, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify the canonical route before merge (recommended)
    Confirm Sol is the intended canonical identity in the upstream Codex roster, then accept Doctor as the sole persisted-reference migration path.
  2. Pause the default change
    Hold the migration if the upstream contract cannot be verified for the reviewed dependency revision.

Technical review

Best possible solution:

Retain the bare direct API alias at runtime, make Doctor the sole persisted-config repair path, and merge only after exact-head CI and an upstream Codex-source contract check confirm Sol is the canonical cross-runtime identity.

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

Yes, at source level: current main’s manifest exposes both the bare GPT-5.6 and Sol rows, and the PR adds a Doctor-plus-Gateway regression path; no post-fix authenticated Team-picker run was supplied.

Is this the best way to solve the issue?

Unclear; using Doctor as the canonical persisted-state owner is the best layer, but the Sol identity still needs an independent upstream Codex-contract check.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 79701dfc84b9.

Labels

Label justifications:

  • P2: This is a bounded provider-default and migration repair with moderate user impact.
  • merge-risk: 🚨 compatibility: The PR changes fresh setup’s default model and rewrites stored bare OpenAI model references.
  • merge-risk: 🚨 auth-provider: The selected identity crosses API-key and Codex authentication/runtime routing.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides built-CLI after-fix Doctor and model-list evidence.

Evidence

What I checked:

Likely related people:

  • steipete: Blame attributes the duplicate catalog row and bare default to the setup refactor, and this person authored the current repair commits. (role: introduced current behavior and recent area contributor; confidence: high; commits: 18f126326a39, ba5b4384b1e4, f00f6833b08f; files: extensions/openai/openclaw.plugin.json, extensions/openai/default-models.ts, src/commands/doctor/shared/legacy-config-migrations.runtime.models.refs.ts)

Rank-up moves

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

  • Verify the cited Codex catalog and model-list source for the dependency revision.
  • Wait for the remaining exact-head checks 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-11T18:09:28.345Z sha c0f2a52eb83cecaf46b2c7c3f76bf6a5ab30da1e :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/duplicate-gpt-5-6-model-entry-cd3a1d branch 2 times, most recently from 6e3e4ec to 36c8836 Compare August 11, 2026 18:36
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 36c8836504f4aab990f0995e140a51803341a28c:

  • Exact-head PR CI: replacement run 31523599705 is green (pending=0). Earlier run 31519744902 exposed two stale canonical-model fixtures; both failed files were corrected and reran locally at 21/21 and 127/127 before the green replacement run.
  • Focused commands: node scripts/run-vitest.mjs extensions/openai/default-models.test.ts extensions/openai/openai-provider.test.ts extensions/openai/openclaw.plugin.test.ts src/commands/onboard-inference.test.ts (29/29 and 93/93); doctor migration (176/176); gateway picker/routes (25/25); inference detection (7/7); install assertions (30/30); explicit bare-alias compatibility (1 passed).
  • Changed gate: node scripts/check-changed.mjs --base 6792921deabe98d1ac2d85b480366c42748b0760 --timed passed every classified local-fallback lane. Crabbox reported no ready provider, so no Testbox lease/run ID was created.
  • Build: pnpm build passed in 3m14.8s, verified all 152 public Plugin SDK subpaths, and emitted no ineffective dynamic-import warning.
  • Docs: inventory completed; MDX 769 files passed; 6,430 internal links had zero breakage; 1,166 config examples validated.
  • Source-blind built CLI on isolated temporary state: openclaw doctor --fix --non-interactive --yes rewrote openai/gpt-5.6 to openai/gpt-5.6-sol and merged the model-map alias; models list --all --provider openai --json returned exactly Luna/Sol/Terra (count=3, exact named roster true, bare row false).
  • Direct upstream Codex verification at sibling commit 92cbfb4d2431bdc53dc03507aea2dc5b8e932e40: codex-rs/models-manager/models.json lines 4/33/63/70, 119/148/178/183, and 232/261/287/292 expose only Sol/Terra/Luna and order Sol first; codex-rs/app-server/src/request_processors/catalog_processor.rs lines 160-170 and 256-306 implement model/list; protocol fields are in codex-rs/app-server-protocol/src/protocol/v2/model.rs lines 53-62, 92-120, and 144-148, with default selection in codex-rs/protocol/src/openai_models.rs lines 786-808.
  • Official contract: OpenAI GPT-5.6 Sol states that the gpt-5.6 alias routes requests to GPT-5.6 Sol.
  • LOC: production +18/-32 (net -14); tests +209/-80; docs +33/-30; tooling +2/-2; generated baseline +1/-1.
  • Fresh project autoreview: TruffleHog clean; no accepted/actionable findings.

ClawSweeper rank-up handling: direct upstream roster inspection is complete. The redacted built-CLI Doctor/model-list proof is complete on a patch-identical production diff; later head changes were tests, mechanical rebases, and the exact generated baseline rider. Known gap: no authenticated post-fix Team run is claimed, and the private Team screenshot/sidebar was not uploaded.

@steipete
steipete force-pushed the steipete/duplicate-gpt-5-6-model-entry-cd3a1d branch from 36c8836 to f00f683 Compare August 11, 2026 18:57
@steipete
steipete force-pushed the steipete/duplicate-gpt-5-6-model-entry-cd3a1d branch from f00f683 to 0228daf Compare August 11, 2026 19:14
@steipete
steipete merged commit 8c56730 into main Aug 11, 2026
120 checks passed
@steipete
steipete deleted the steipete/duplicate-gpt-5-6-model-entry-cd3a1d branch August 11, 2026 19:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 12, 2026
* fix(openai): remove duplicate GPT-5.6 picker entry

* test(gateway): split OpenAI model picker coverage

* test(openai): align canonical model fixtures

* chore(plugin-sdk): refresh agent harness API baseline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation 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. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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.

1 participant