Skip to content

fix(openai): show newer subscription models in the picker - #200811

Merged
hannesrudolph merged 2 commits into
mainfrom
openclaw/kind-krill
Nov 17, 2026
Merged

hannesrudolph merged 2 commits into
mainfrom
openclaw/kind-krill

Conversation

@hannesrudolph

Copy link
Copy Markdown
Member

What Problem This Solves

Refreshing models with a ChatGPT subscription can omit models already listed for the same account because the discovery request reports an older Codex version.

User Impact

Subscription discovery can show newer models without changing the bundled or installed Codex. The picker can now show a model an older Codex runtime cannot run; discovery does not guarantee inference compatibility.

Why This Change Was Made

Send client_version=99.0.0 only for the authenticated subscription catalog request. Keep account scoping, visibility, the Platform access-program request, Sign in with ChatGPT, and turn execution unchanged. Related: #167387, #167633, #168228.

Evidence

  • Same-account live catalog comparison: 0.164.0 omitted both GPT-6.2 models; 0.167.1, 0.169.0, and 99.0.0 returned the same catalog with both listed. No live inference was attempted.
  • The two request-boundary regression cases failed before the change and passed after; 60 distinct focused tests passed across catalog discovery, auth-order and version-contract coverage. Changed-file lint, formatting, and git diff --check passed.
  • Independent local Codex autoreview of the final patch against ae6b903359e3 found no actionable P0–P2 findings in the diff. It did not execute the project or independently verify unchanged surrounding source.
  • Full build and hosted CI not run locally.

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: openai size: S labels Nov 17, 2026
@hannesrudolph
hannesrudolph marked this pull request as ready for review November 17, 2026 21:57
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR requests the broader ChatGPT subscription catalog using client_version=99.0.0 independently of the executing Codex version.

Example: A ChatGPT subscriber refreshes models while using Codex 0.164.0.

  • Before: The reported same-account catalog comparison omitted newer models with client_version=0.164.0.
  • After: Discovery requests client_version=99.0.0, which returned those models in the reported comparison, although runtime compatibility remains separate.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Focused implementation with accepted product direction and successful exact-head CI, but the required product-path proof is not supplied.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: ChatGPT subscribers can miss account models because discovery advertises an older Codex client version.
Reason: The maintainer author explicitly chooses broader visibility over runtime-aligned filtering and acknowledges possible first-turn rejection, resolving the product-direction question.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a deliberate, narrowly scoped model-discovery policy change, with no definite introduced code defect found.

Priority: P2
Reviewed head: f87483001f58254345a6312b8bb2341044eadf6f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted CLI output or a Gateway Models refresh capture showing the changed subscription catalog publishing the newly returned models; inference compatibility need not be claimed.
Agent review details

How this fits together

The OpenAI provider turns authenticated, account-scoped backend catalog responses into picker rows; Codex separately selects the binary that executes turns.

flowchart LR
A[ChatGPT credential] --> B[OpenAI provider discovery]
B --> C[Broad subscription catalog]
C --> D[Account scoped picker rows]
D --> E[Selected model]
E --> F[Codex turn runtime]
Loading

Technical review

Best possible solution:

Keep the broader subscription query in the existing provider catalog owner while leaving runtime selection and Platform access-program discovery with their existing owners.

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

Current-main source reports the selected runtime version, and the author reports that changing this parameter changed the same account's returned catalog; no independent product reproduction was run.

Is this the best way to solve the issue?

The patch is the smallest implementation of the accepted visibility policy: it changes the existing subscription request without adding configuration, runtime machinery, or another catalog owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b255cc584c9b.

Provenance checked

  • Subscription discovery version selection and accompanying documentation changes intended behavior with a stated reason (cbaa9ab: Select a qualified newer installed Codex and advertise the same version so discovery matches the executing binary.)
  • Discovery/runtime alignment regression expectations changes intended behavior with a stated reason (629593b: Restore aligned discovery after a broader advertised version could expose models rejected by the default runtime.)
  • Provider catalog extraction and lazy runtime imports keeps the original intent (625945b: Keep optional execution modules off cold Gateway startup paths while preserving provider catalog behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit cbaa9ab adds extensions/openai/base-url.ts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cbaa9abada32; files: extensions/openai/base-url.ts)
  • Peter Steinberger: Raw commit 0f4b6f8 adds extensions/openai/base-url.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 0f4b6f81d985; files: extensions/openai/base-url.ts)
  • Vincent Koc: Raw commit 625945b adds extensions/openai/openai-provider-catalog.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 625945b7ae01; files: extensions/openai/openai-provider-catalog.ts)

PR surface

Source -6, Tests +2, Docs -15. Total -19 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 6 12 -6
Tests 3 18 16 +2
Docs 2 17 32 -15
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 41 60 -19

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A bounded improvement to subscription model discovery with no established urgent runtime regression.
  • add merge-risk: 🚨 auth-provider: The picker can advertise a model the executing Codex version rejects; the maintainer-authored PR explicitly accepts this tradeoff.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A bounded improvement to subscription model discovery with no established urgent runtime regression.
  • merge-risk: 🚨 auth-provider: The picker can advertise a model the executing Codex version rejects; the maintainer-authored PR explicitly accepts this tradeoff.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 5:11 PM ET / 22:11 UTC.

@hannesrudolph
hannesrudolph merged commit 0a27bd7 into main Nov 17, 2026
191 checks passed
@hannesrudolph
hannesrudolph deleted the openclaw/kind-krill branch November 17, 2026 22:17
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
obviyus added a commit that referenced this pull request Nov 18, 2026
…w release (#201130)

## What Problem This Solves

Fixes: new OpenAI models (for example GPT-6.2) do not appear in the picker for ChatGPT subscription logins until a new OpenClaw release ships.

## User Impact

User impact: a newly launched OpenAI subscription model appears in the picker within six hours of OpenAI publishing the Codex release that supports it, without an OpenClaw update. The OpenClaw harness runs it at once. A Codex-harness turn on a model its Codex binary is too old for now fails with a clear message: `<model> needs a newer Codex than <version>. Update your global Codex with "npm i -g @openai/codex", then restart the Gateway. Or choose another model.` In Control UI, that failure offers **Start a new session**: a session on the OpenClaw harness, same agent and model, that asks the agent to run the update. OpenClaw itself never installs or updates Codex. Channels show the text instructions.

## Why This Change Was Made

ChatGPT's subscription model list (`/backend-api/codex/models`) hides each model from clients whose `client_version` is below the model's minimum Codex version. OpenClaw reported its bundled or installed Codex version, so every new model waited for an OpenClaw release (or a manual Codex upgrade plus restart).

The OpenAI plugin now lists as the newest stable `@openai/codex` on npm, cached for six hours and never below the bundled pin. If the registry read fails, it lists as the bundled pin and retries on the next listing. The Codex harness still runs only its own binary. When that binary is too old, the native `model_not_found` error becomes the actionable message above, at the one existing mapping point (`resolveCodexPromptError`).

Compared with the reverted #200811 (`client_version=99.0.0`): this reports a real published Codex version, so it lists only models some released Codex can run, and the update instructions always resolve the failure. The shared tradeoff (a Codex harness older than npm latest can see a model it cannot run) is intentional; `src/plugins/AGENTS.md` and `src/agents/AGENTS.md` now state it. The Codex error is a host-owned `AgentHarnessRuntimeUpdateRequiredError` (code `harness_update_required`), which the run-failure notice keeps so Control UI can offer the new session.

The update instruction names the Codex the turn ran: global npm (`npm i -g @openai/codex`), the ChatGPT desktop app's Codex (desktop-first), the path set by `plugins.entries.codex.config.appServer.command` or `OPENCLAW_CODEX_APP_SERVER_BIN`, or the remote app-server. A new session started from an incognito conversation is incognito too.

This removes the earlier "report the selected Codex binary" path: the parent-to-worker version handoff, the private-local SDK facade `plugin-sdk/codex-client-version-runtime`, and `extensions/codex/client-version-api.ts`. Net: 60 files, +1205 / −936 against the merge base; about 350 of those lines are existing tests moved verbatim to a sibling file.

Control UI chat boot: base `6ec27bd739c7` is already over the request ceiling (21 requests > 20, 1,331,855 B gzip); this change adds 198 B gzip and no request. The new session's creation code loads lazily through the existing `createSession` runtime import.

## Evidence

- **Focused tests (green on the final head):** `extensions/openai/openai-codex-discovery.test.ts`, `extensions/openai/openai-provider.test.ts`, `extensions/openai/openai-provider.codex-catalog.test.ts` (ChatGPT OAuth catalog cases moved verbatim from `openai-provider.test.ts` for the line cap), `extensions/openai/base-url.test.ts`, `extensions/codex/src/app-server/event-projector.terminal-errors.test.ts` (also red on the merge base), `extensions/codex/src/app-server/managed-binary.test.ts`, `extensions/codex/src/app-server/bounded-turn.test.ts`, `extensions/codex/src/app-server/isolated-completion.native.test.ts`, `src/agents/prepared-model-catalog-worker.test.ts`, `test/scripts/codex-client-version-contract.test.ts`. `tsgo:core`, `tsgo:extensions`, `tsgo:extensions:test` pass.
- **Red on base, green with fix:** `src/plugins/contracts/provider-live-listing.contract.test.ts` › "OpenAI subscription models list and run without a release" fails on the merge base (`expected [] to include 'contract-probe-chat-1'`) and passes on this branch.
- **End to end, isolated Gateway from source with a real ChatGPT login:**
  - Model-list URL resolved to `…/models?client_version=0.170.0` (npm latest at test time; bundled pin is 0.169.0).
  - `models.list` showed `gpt-6.2-astra` and `gpt-6.2-sol` for an OpenClaw-harness agent and a Codex-harness agent.
  - A real `openai/gpt-6.2-sol` turn returned `ok` on each harness; session entries record `agentHarnessId` `openclaw` and `codex`.
  - With an explicit Codex 0.164.0 app-server binary, the Codex-harness turn failed with: `gpt-6.2-sol needs a newer Codex than 0.164.0. Update your global Codex with "npm i -g @openai/codex", then restart the Gateway. Or choose another model.`
- **Start a new session, end to end** (same Gateway, Codex 0.164.0, real Control UI). The before shot is from the unchanged base UI `6ec27bd739c7`; after shots are from this branch's build:
  - Before: the update failure offers only Try again.
  - After: the same failure offers **Start a new session**. Clicking it opened a session on the OpenClaw harness with `gpt-6.2-sol`; the agent ran the update with its normal exec tool, reported `codex-cli 0.170.0`, and said the Gateway must restart to select it.
- **Focused tests for the button and notice:** `ui/src/pages/chat/components/chat-run-failure-notice.test.ts` (10), `src/sessions/session-run-error.test.ts` (10), `extensions/codex/src/app-server/event-projector.terminal-errors.test.ts` (41), `src/gateway/server-chat.native-provider-error.test.ts` (7). `tsgo:core`, `tsgo:ui`, `tsgo:extensions`, `tsgo:extensions:test`, oxlint and the line-cap ratchet pass on `670e3c7a8e`.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…w release (openclaw#201130)

## What Problem This Solves

Fixes: new OpenAI models (for example GPT-6.2) do not appear in the picker for ChatGPT subscription logins until a new OpenClaw release ships.

## User Impact

User impact: a newly launched OpenAI subscription model appears in the picker within six hours of OpenAI publishing the Codex release that supports it, without an OpenClaw update. The OpenClaw harness runs it at once. A Codex-harness turn on a model its Codex binary is too old for now fails with a clear message: `<model> needs a newer Codex than <version>. Update your global Codex with "npm i -g @openai/codex", then restart the Gateway. Or choose another model.` In Control UI, that failure offers **Start a new session**: a session on the OpenClaw harness, same agent and model, that asks the agent to run the update. OpenClaw itself never installs or updates Codex. Channels show the text instructions.

## Why This Change Was Made

ChatGPT's subscription model list (`/backend-api/codex/models`) hides each model from clients whose `client_version` is below the model's minimum Codex version. OpenClaw reported its bundled or installed Codex version, so every new model waited for an OpenClaw release (or a manual Codex upgrade plus restart).

The OpenAI plugin now lists as the newest stable `@openai/codex` on npm, cached for six hours and never below the bundled pin. If the registry read fails, it lists as the bundled pin and retries on the next listing. The Codex harness still runs only its own binary. When that binary is too old, the native `model_not_found` error becomes the actionable message above, at the one existing mapping point (`resolveCodexPromptError`).

Compared with the reverted openclaw#200811 (`client_version=99.0.0`): this reports a real published Codex version, so it lists only models some released Codex can run, and the update instructions always resolve the failure. The shared tradeoff (a Codex harness older than npm latest can see a model it cannot run) is intentional; `src/plugins/AGENTS.md` and `src/agents/AGENTS.md` now state it. The Codex error is a host-owned `AgentHarnessRuntimeUpdateRequiredError` (code `harness_update_required`), which the run-failure notice keeps so Control UI can offer the new session.

The update instruction names the Codex the turn ran: global npm (`npm i -g @openai/codex`), the ChatGPT desktop app's Codex (desktop-first), the path set by `plugins.entries.codex.config.appServer.command` or `OPENCLAW_CODEX_APP_SERVER_BIN`, or the remote app-server. A new session started from an incognito conversation is incognito too.

This removes the earlier "report the selected Codex binary" path: the parent-to-worker version handoff, the private-local SDK facade `plugin-sdk/codex-client-version-runtime`, and `extensions/codex/client-version-api.ts`. Net: 60 files, +1205 / −936 against the merge base; about 350 of those lines are existing tests moved verbatim to a sibling file.

Control UI chat boot: base `c1e069592f92` is already over the request ceiling (21 requests > 20, 1,331,855 B gzip); this change adds 198 B gzip and no request. The new session's creation code loads lazily through the existing `createSession` runtime import.

## Evidence

- **Focused tests (green on the final head):** `extensions/openai/openai-codex-discovery.test.ts`, `extensions/openai/openai-provider.test.ts`, `extensions/openai/openai-provider.codex-catalog.test.ts` (ChatGPT OAuth catalog cases moved verbatim from `openai-provider.test.ts` for the line cap), `extensions/openai/base-url.test.ts`, `extensions/codex/src/app-server/event-projector.terminal-errors.test.ts` (also red on the merge base), `extensions/codex/src/app-server/managed-binary.test.ts`, `extensions/codex/src/app-server/bounded-turn.test.ts`, `extensions/codex/src/app-server/isolated-completion.native.test.ts`, `src/agents/prepared-model-catalog-worker.test.ts`, `test/scripts/codex-client-version-contract.test.ts`. `tsgo:core`, `tsgo:extensions`, `tsgo:extensions:test` pass.
- **Red on base, green with fix:** `src/plugins/contracts/provider-live-listing.contract.test.ts` › "OpenAI subscription models list and run without a release" fails on the merge base (`expected [] to include 'contract-probe-chat-1'`) and passes on this branch.
- **End to end, isolated Gateway from source with a real ChatGPT login:**
  - Model-list URL resolved to `…/models?client_version=0.170.0` (npm latest at test time; bundled pin is 0.169.0).
  - `models.list` showed `gpt-6.2-astra` and `gpt-6.2-sol` for an OpenClaw-harness agent and a Codex-harness agent.
  - A real `openai/gpt-6.2-sol` turn returned `ok` on each harness; session entries record `agentHarnessId` `openclaw` and `codex`.
  - With an explicit Codex 0.164.0 app-server binary, the Codex-harness turn failed with: `gpt-6.2-sol needs a newer Codex than 0.164.0. Update your global Codex with "npm i -g @openai/codex", then restart the Gateway. Or choose another model.`
- **Start a new session, end to end** (same Gateway, Codex 0.164.0, real Control UI). The before shot is from the unchanged base UI `c1e069592f92`; after shots are from this branch's build:
  - Before: the update failure offers only Try again.
  - After: the same failure offers **Start a new session**. Clicking it opened a session on the OpenClaw harness with `gpt-6.2-sol`; the agent ran the update with its normal exec tool, reported `codex-cli 0.170.0`, and said the Gateway must restart to select it.
- **Focused tests for the button and notice:** `ui/src/pages/chat/components/chat-run-failure-notice.test.ts` (10), `src/sessions/session-run-error.test.ts` (10), `extensions/codex/src/app-server/event-projector.terminal-errors.test.ts` (41), `src/gateway/server-chat.native-provider-error.test.ts` (7). `tsgo:core`, `tsgo:ui`, `tsgo:extensions`, `tsgo:extensions:test`, oxlint and the line-cap ratchet pass on `670e3c7a8e`.

Co-authored-by: Ayaan Zaidi <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 19, 2026
…w release (#201130)

Fixes: new OpenAI models (for example GPT-6.2) do not appear in the picker for ChatGPT subscription logins until a new OpenClaw release ships.

User impact: a newly launched OpenAI subscription model appears in the picker within six hours of OpenAI publishing the Codex release that supports it, without an OpenClaw update. The OpenClaw harness runs it at once. A Codex-harness turn on a model its Codex binary is too old for now fails with a clear message: `<model> needs a newer Codex than <version>. Update your global Codex with "npm i -g @openai/codex", then restart the Gateway. Or choose another model.` In Control UI, that failure offers **Start a new session**: a session on the OpenClaw harness, same agent and model, that asks the agent to run the update. OpenClaw itself never installs or updates Codex. Channels show the text instructions.

ChatGPT's subscription model list (`/backend-api/codex/models`) hides each model from clients whose `client_version` is below the model's minimum Codex version. OpenClaw reported its bundled or installed Codex version, so every new model waited for an OpenClaw release (or a manual Codex upgrade plus restart).

The OpenAI plugin now lists as the newest stable `@openai/codex` on npm, cached for six hours and never below the bundled pin. If the registry read fails, it lists as the bundled pin and retries on the next listing. The Codex harness still runs only its own binary. When that binary is too old, the native `model_not_found` error becomes the actionable message above, at the one existing mapping point (`resolveCodexPromptError`).

Compared with the reverted #200811 (`client_version=99.0.0`): this reports a real published Codex version, so it lists only models some released Codex can run, and the update instructions always resolve the failure. The shared tradeoff (a Codex harness older than npm latest can see a model it cannot run) is intentional; `src/plugins/AGENTS.md` and `src/agents/AGENTS.md` now state it. The Codex error is a host-owned `AgentHarnessRuntimeUpdateRequiredError` (code `harness_update_required`), which the run-failure notice keeps so Control UI can offer the new session.

The update instruction names the Codex the turn ran: global npm (`npm i -g @openai/codex`), the ChatGPT desktop app's Codex (desktop-first), the path set by `plugins.entries.codex.config.appServer.command` or `OPENCLAW_CODEX_APP_SERVER_BIN`, or the remote app-server. A new session started from an incognito conversation is incognito too.

This removes the earlier "report the selected Codex binary" path: the parent-to-worker version handoff, the private-local SDK facade `plugin-sdk/codex-client-version-runtime`, and `extensions/codex/client-version-api.ts`. Net: 60 files, +1205 / −936 against the merge base; about 350 of those lines are existing tests moved verbatim to a sibling file.

Control UI chat boot: base `6ec27bd739c7` is already over the request ceiling (21 requests > 20, 1,331,855 B gzip); this change adds 198 B gzip and no request. The new session's creation code loads lazily through the existing `createSession` runtime import.

- **Focused tests (green on the final head):** `extensions/openai/openai-codex-discovery.test.ts`, `extensions/openai/openai-provider.test.ts`, `extensions/openai/openai-provider.codex-catalog.test.ts` (ChatGPT OAuth catalog cases moved verbatim from `openai-provider.test.ts` for the line cap), `extensions/openai/base-url.test.ts`, `extensions/codex/src/app-server/event-projector.terminal-errors.test.ts` (also red on the merge base), `extensions/codex/src/app-server/managed-binary.test.ts`, `extensions/codex/src/app-server/bounded-turn.test.ts`, `extensions/codex/src/app-server/isolated-completion.native.test.ts`, `src/agents/prepared-model-catalog-worker.test.ts`, `test/scripts/codex-client-version-contract.test.ts`. `tsgo:core`, `tsgo:extensions`, `tsgo:extensions:test` pass.
- **Red on base, green with fix:** `src/plugins/contracts/provider-live-listing.contract.test.ts` › "OpenAI subscription models list and run without a release" fails on the merge base (`expected [] to include 'contract-probe-chat-1'`) and passes on this branch.
- **End to end, isolated Gateway from source with a real ChatGPT login:**
  - Model-list URL resolved to `…/models?client_version=0.170.0` (npm latest at test time; bundled pin is 0.169.0).
  - `models.list` showed `gpt-6.2-astra` and `gpt-6.2-sol` for an OpenClaw-harness agent and a Codex-harness agent.
  - A real `openai/gpt-6.2-sol` turn returned `ok` on each harness; session entries record `agentHarnessId` `openclaw` and `codex`.
  - With an explicit Codex 0.164.0 app-server binary, the Codex-harness turn failed with: `gpt-6.2-sol needs a newer Codex than 0.164.0. Update your global Codex with "npm i -g @openai/codex", then restart the Gateway. Or choose another model.`
- **Start a new session, end to end** (same Gateway, Codex 0.164.0, real Control UI). The before shot is from the unchanged base UI `6ec27bd739c7`; after shots are from this branch's build:
  - Before: the update failure offers only Try again.
  - After: the same failure offers **Start a new session**. Clicking it opened a session on the OpenClaw harness with `gpt-6.2-sol`; the agent ran the update with its normal exec tool, reported `codex-cli 0.170.0`, and said the Gateway must restart to select it.
- **Focused tests for the button and notice:** `ui/src/pages/chat/components/chat-run-failure-notice.test.ts` (10), `src/sessions/session-run-error.test.ts` (10), `extensions/codex/src/app-server/event-projector.terminal-errors.test.ts` (41), `src/gateway/server-chat.native-provider-error.test.ts` (7). `tsgo:core`, `tsgo:ui`, `tsgo:extensions`, `tsgo:extensions:test`, oxlint and the line-cap ratchet pass on `670e3c7a8e`.

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit 1680f54)
Release adaptation: Preserve baseline send actions, notice props, and performance budget; add only update recovery wiring. Omit unrelated plugin feedback and model-specific documentation example. Visual and bundle proof remain required at integration.:
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 9e29cd77014f2b4aeba321bef371a24bafe5915c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: openai merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S 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