Skip to content

fix(openai): new ChatGPT subscription models missing until an OpenClaw release - #201130

Merged
obviyus merged 10 commits into
mainfrom
fix/subscription-model-listing
Nov 18, 2026
Merged

obviyus merged 10 commits into
mainfrom
fix/subscription-model-listing

Conversation

@obviyus

@obviyus obviyus commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@clawsweeper

clawsweeper Bot commented Nov 18, 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 scripts Repository scripts agents Agent runtime and tooling extensions: openai extensions: codex extensions: xai size: XL labels Nov 18, 2026
@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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR discovers ChatGPT subscription models using the latest published Codex version and explains failures from older Codex runtimes.

Example: The bundled Codex is 0.169.0 and npm publishes 0.170.0 with additional subscription models.

  • Before: Discovery reports the selected local Codex version, potentially hiding newer models.
  • After: Discovery reports 0.170.0 while execution continues using the selected runtime.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Concrete runtime results support the intended behavior, but recovery guidance and diff-caused consumer test failures block readiness.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The body supplies inline results from an isolated source Gateway with real ChatGPT authentication: discovery used 0.170.0, both harnesses completed a real turn, and explicit Codex 0.164.0 produced the changed error.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: New subscription models can remain hidden because discovery reports an older local Codex version.
Reason: The maintainer-authored PR explicitly chooses release-independent visibility and acknowledges older-runtime failures, resolving the direction decision.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this maintainer-authored PR addresses a documented discovery limitation, but its recovery advice and affected catalog tests need focused repairs.

Priority: P2
Reviewed head: 0423948ea4c7abcbaa2e34659f28f28c63a41c77

Before merge

  • Give recovery advice that also works for explicit Codex binaries (P2) - The supplied reproduction uses an explicit Codex 0.164.0 executable, but this message tells that user to update global Codex and restart. config-options.ts:121–128 keeps appServer.command and OPENCLAW_CODEX_APP_SERVER_BIN ahead of managed selection, so following those instructions still launches the old executable and fails again. Tell users to update the Codex installation their runtime actually uses, or qualify the global-install instructions for managed selection; retain the alternate-model escape path.
  • Update the remaining catalog fixtures for the registry lookup (P2) - The new registry GET also runs during Platform access-program discovery, but three existing consumers still mock every fetch as an OpenAI catalog request. CI consequently fails platform-access-programs.test.ts:89 with 10 calls instead of 6, openai-api-key-catalog.test.ts:160 with 3 requests instead of 2, and test/openai-model-discovery-auth-order.test.ts:340 with an extra catalog event. Isolate or explicitly serve the npm lookup in those fixtures, as the modified provider suites already do, while preserving their credential, cache-isolation, and auth-order assertions.

Findings

  • [P2] Give recovery advice that also works for explicit Codex binaries — extensions/codex/src/app-server/usage-limit-error.ts:99-102
  • [P2] Update the remaining catalog fixtures for the registry lookup — extensions/openai/codex-client-version.ts:30-38
Agent review details

How this fits together

The OpenAI plugin turns authenticated backend model listings into Gateway catalog rows; the Codex plugin independently selects and runs its app-server binary.

flowchart TD
  A[npm release metadata] --> B[OpenAI discovery version]
  B --> C[Authenticated ChatGPT model list]
  C --> D[Gateway model catalog]
  D --> E[Selected agent harness]
  E --> F[OpenClaw transport]
  E --> G[Codex app server]
  G --> H[Native error projection]
Loading

Technical review

Best possible solution:

Keep the plugin-owned discovery resolver and complete handoff removal, with accurate recovery guidance and repaired consumer test fixtures.

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

Current-main source establishes the version-gated discovery path; the body supplies real Gateway observations, and this read-only review ran no target code.

Is this the best way to solve the issue?

The resolver reuses the existing cache and removes the superseded owner cleanly; its remaining repairs fit the existing diagnostic and test boundaries.

Full review comments:

  • [P2] Give recovery advice that also works for explicit Codex binaries — extensions/codex/src/app-server/usage-limit-error.ts:99-102
    The supplied reproduction uses an explicit Codex 0.164.0 executable, but this message tells that user to update global Codex and restart. config-options.ts:121–128 keeps appServer.command and OPENCLAW_CODEX_APP_SERVER_BIN ahead of managed selection, so following those instructions still launches the old executable and fails again. Tell users to update the Codex installation their runtime actually uses, or qualify the global-install instructions for managed selection; retain the alternate-model escape path.
    Confidence: 0.99
  • [P2] Update the remaining catalog fixtures for the registry lookup — extensions/openai/codex-client-version.ts:30-38
    The new registry GET also runs during Platform access-program discovery, but three existing consumers still mock every fetch as an OpenAI catalog request. CI consequently fails platform-access-programs.test.ts:89 with 10 calls instead of 6, openai-api-key-catalog.test.ts:160 with 3 requests instead of 2, and test/openai-model-discovery-auth-order.test.ts:340 with an extra catalog event. Isolate or explicitly serve the npm lookup in those fixtures, as the modified provider suites already do, while preserving their credential, cache-isolation, and auth-order assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Discovery version and parent-to-worker handoff changes intended behavior with a stated reason (cbaa9ab: Keep discovered models aligned with the selected runtime, including catalog workers.)
  • Discovery/runtime compatibility alignment changes intended behavior with a stated reason (fix(openai): ChatGPT-login picker lists models the bundled Codex rejects #167633: An older Codex could reject models exposed by npm-latest discovery; this PR deliberately accepts visibility ahead of execution and adds recovery guidance.)
  • Native prompt-error projection keeps the original intent (34a942d: Preserve native provider status and distinguish retryable failures from model configuration errors.)
  • Moved OAuth catalog tests keeps the original intent (1b9fe6a: Release unused backend instruction templates while retaining account-scoped catalog facts.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test extensions/openai/platform-access-programs.test.ts extensions/openai/openai-api-key-catalog.test.ts test/openai-model-discovery-auth-order.test.ts
  • pnpm test extensions/openai/openai-codex-discovery.test.ts extensions/codex/src/app-server/event-projector.terminal-errors.test.ts src/plugins/contracts/provider-live-listing.contract.test.ts
  • node scripts/check-changed.mjs
  • git diff --check

What I checked:

  • Reviewed introduction and clean checkout: Reviewed the pinned merge-base-to-head changes; final Git status is clean. (0423948ea4c7)
  • Current-main behavior: Current main still derives discovery's client_version from the selected Codex binary, with the bundled version as fallback. (extensions/openai/base-url.ts:24, e86c044a8881)
  • Accepted direction and supplied runtime results: The collaborator-authored body explicitly accepts discovery/execution version differences and reports real isolated-Gateway listings, successful turns on both harnesses, and the exact failure from an explicit Codex 0.164.0 binary. (0423948ea4c7)
  • Explicit binary precedence: Configured and environment-specified executables take precedence over managed selection, so updating global Codex cannot replace an explicitly pinned executable. (extensions/codex/src/app-server/config-options.ts:121, 0423948ea4c7)
  • Diff-caused catalog test failures: CI reports extra fetches in platform-access-programs.test.ts:89, openai-api-key-catalog.test.ts:160, and openai-model-discovery-auth-order.test.ts:340; their fetch fixtures do not account for the newly added registry request. (extensions/openai/codex-client-version.ts:32, 0423948ea4c7)
  • Other CI failures remain unattributed: The channel-progress, native-hook-pressure, and Telegram recovered-artifact QA failures lack a verified base comparison; they are neither attributed to this patch nor declared pre-existing. (0423948ea4c7)

PR surface

Source -49, Tests +32, Docs -7, Config -7, Other -2. Total -33 across 39 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 19 200 249 -49
Tests 13 652 620 +32
Docs 3 30 37 -7
Config 2 0 7 -7
Generated 0 0 0 0
Other 2 0 2 -2
Total 39 882 915 -33

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: Model discovery gains useful release independence, with bounded recovery-copy and test-integration defects to repair.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Model discovery gains useful release independence, with bounded recovery-copy and test-integration defects to repair.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 18, 2026, 5:30 AM ET / 10:30 UTC.

@obviyus

obviyus commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Before/after for the Codex update failure in Control UI (Codex 0.164.0 harness, gpt-6.2-sol).

Before: update failure with only Try again

After: Start a new session button

New session on the OpenClaw harness asks the agent to update Codex

Agent reports Codex 0.170.0 installed and a Gateway restart needed

… release

- List ChatGPT subscription models as the newest stable @openai/codex on npm
  (6 h cache, never below the bundled pin), so newly launched models appear
  without an OpenClaw release.
- Explain Codex-harness turns that need a newer Codex instead of surfacing the
  raw model_not_found error.
- Remove the parent-to-worker Codex version handoff and the private
  codex-client-version-runtime SDK facade.
- Move the ChatGPT OAuth catalog provider tests to a sibling file (line cap).
… model

- Codex raises the host-owned AgentHarnessRuntimeUpdateRequiredError
  (code harness_update_required) for ChatGPT model-not-found failures.
- The run-failure notice keeps that code and the update instructions.
- Control UI offers Start a new session: same agent and model on the
  OpenClaw harness, asking the agent to update Codex. OpenClaw itself
  never installs or updates Codex.
- Listing rules now state this contract.
…sessions incognito

- The outdated-Codex error names the install the turn ran: global npm,
  the configured appServer.command, OPENCLAW_CODEX_APP_SERVER_BIN, or the
  remote app-server.
- Start a new session from an incognito conversation creates an incognito
  session.
… app

- Desktop-first selection skips PATH Codex while the desktop app is present,
  so the outdated-Codex error now asks to update the desktop app instead.
…ement

- The outdated-Codex error names the desktop app (ChatGPT or Codex) that
  supplied the binary.
- A failed-turn snapshot without new details keeps the update-required
  error, so Control UI still offers Start a new session.
- Resolve the recovery model through resolveChatModelSelectValues (local
  selection, session row, agent default) instead of the roster row, which
  incognito chats lack, so the session runs on the OpenClaw harness.
- platform-access-programs and openai-api-key-catalog count model-list
  requests; the npm read is covered by openai-codex-discovery.test.ts.
- Add src/shared/run-failure-notice.ts to the PR wrapper import inventory.
- Isolate the npm Codex version read in the discovery auth-order test.
@obviyus
obviyus force-pushed the fix/subscription-model-listing branch from 9cda3b1 to 853af0c Compare November 18, 2026 13:07
- Answer the npm Codex version read in the auth-order fetch stub instead of
  mocking an OpenAI plugin module from a root test.
- Drop the deleted catalog-worker test from the database-worker path list.
@obviyus
obviyus merged commit 1680f54 into main Nov 18, 2026
415 of 422 checks passed
@obviyus
obviyus deleted the fix/subscription-model-listing branch November 18, 2026 15:09
@obviyus

obviyus commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 1680f54.

  • Bug: ChatGPT subscription logins could not see new OpenAI models such as GPT-6.2 until an OpenClaw release bumped the bundled Codex version that model discovery reports.
  • Fix: subscription listing reports the newest stable @openai/codex on npm (6 h cache, never below the bundled pin). A Codex-harness binary too old for a listed model now fails with update instructions that name the Codex the turn ran. In Control UI, the failure offers Start a new session on the OpenClaw harness to run the update.
  • Proof: with a real ChatGPT login, gpt-6.2-sol turns ran on both harnesses; Codex 0.164.0 produced the new update error; the before/after screenshots and the button flow are above. The listing contract and Codex error tests fail on the merge base. The local review is clean on the merged head. The unrelated CI failures are explained in the override comment.

steipete added a commit that referenced this pull request Nov 18, 2026
Remove the agent barrel re-export left unused by #201218. Sessions continue
using the watcher directly. Keep the OpenAI client-version floor private;
tests read the canonical bundled Codex package pin instead of a test-only
production export, while the existing contract still verifies equality.

Follow up #201130 by @obviyus and #201218 by @roboclaw-bot, with
@vyctorbrzezowski. Runtime model discovery and agent selection are unchanged.

Validation: all three Knip export scans report zero entries; 57 OpenAI and
version-contract tests, 36 UI unit/browser tests, the agent-switch roster
E2E, check:changed, and Codex autoreview through P2 pass. No scan ignores
or baseline exceptions. Production LOC: -1.

Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: vyctorbrzezowski <[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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
Remove the agent barrel re-export left unused by openclaw#201218. Sessions continue
using the watcher directly. Keep the OpenAI client-version floor private;
tests read the canonical bundled Codex package pin instead of a test-only
production export, while the existing contract still verifies equality.

Follow up openclaw#201130 by @obviyus and openclaw#201218 by @roboclaw-bot, with
@vyctorbrzezowski. Runtime model discovery and agent selection are unchanged.

Validation: all three Knip export scans report zero entries; 57 OpenAI and
version-contract tests, 36 UI unit/browser tests, the agent-switch roster
E2E, check:changed, and Codex autoreview through P2 pass. No scan ignores
or baseline exceptions. Production LOC: -1.

Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* improve(ci): avoid duplicate release source guard scans

* fix(ci): classify recovery browser test server ownership (#200402)

(cherry picked from commit a62e4e1)

* fix(ci): restore package harness startup

Copy the runtime process dependency manifest into the dependency-free packaging fixture so the CLI reaches argument validation. The existing startup assertion continues to reject missing modules.

(cherry picked from commit 84262af)

* test(facetime): preserve child process exports in audio fixture (#200419)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 36549cb)

* test(browser): align fixtures with navigation and CLI contracts (#200428)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit d0daf88)

* fix: restore Codex qualification fixture contracts (#200450)

* fix: restore Codex run-attempt qualification coverage

Use the complete typed transcript recorder fixtures and assert post-acceptance submission after prompt persistence, matching #199695. No production behavior or timeout changes.

Co-authored-by: RomneyDa <[email protected]>

* test: align Codex refresh callback fixtures

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 8f0d03f)

* fix(crabbox): join heartbeat command cleanup before retirement (#200466)

(cherry picked from commit 6247dc4)

* fix(agents): retain ambiguous completed-answer receipts

* fix(qa): ignore workspace context when detecting continuation

---------

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 60e0e21)
Release adaptation: Preserve baseline authored-request continuation classifier and extractToolOutput import; newer #201244 behavior already exists. Apply runtime-context split and regression without downgrading it.:
Backport review: #201130 selected by sibling; #201331 and #198760 are independent package script changes. #201244 classifier already present-equivalent on baseline.:
(cherry picked from commit ad2ae0e0e2bf242ab0df9f9ca29f4f848caf478c)
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)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
Remove the agent barrel re-export left unused by #201218. Sessions continue
using the watcher directly. Keep the OpenAI client-version floor private;
tests read the canonical bundled Codex package pin instead of a test-only
production export, while the existing contract still verifies equality.

Follow up #201130 by @obviyus and #201218 by @roboclaw-bot, with
@vyctorbrzezowski. Runtime model discovery and agent selection are unchanged.

Validation: all three Knip export scans report zero entries; 57 OpenAI and
version-contract tests, 36 UI unit/browser tests, the agent-switch roster
E2E, check:changed, and Codex autoreview through P2 pass. No scan ignores
or baseline exceptions. Production LOC: -1.

Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
(cherry picked from commit c9f03ee)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit c70c0ea043f8dd7913a3f8120854f4bff27506f0)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
Release adaptation follow-up to #201130. No runtime change.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f209230494767daf42606ca24a2d55f595032111)
obviyus added a commit that referenced this pull request Nov 20, 2026
…202380)

Supersedes #202284. Restores the approach of #201493. Related: #201130.

## What Problem This Solves

ChatGPT subscription model discovery calls `/backend-api/codex/models?client_version=<X>`, and the backend hides every model whose `minimal_client_version` is above X. On main (#202284), X comes from a lookup of the latest `@openai/codex` on npm, cached in memory for six hours. That puts a registry request (1 s budget) on the model-listing path. A failed or slow lookup lists at the bundled 0.169.0 floor and can hide newly launched models. The in-memory cache also does not survive a restart or eviction.

## Solution

- List with the OpenClaw release that OpenClaw-harness Responses turns already send as the `version` header (provider attribution). The list and the turn use one value from one owner.
- Send only the numeric `YYYY.M.P` part (year 2026 or later). For example, `2026.11.5-beta.1` lists as `2026.11.5`. Anything else (`unknown`, `0.0.0-dev`, a bad `OPENCLAW_VERSION` override, or a proxy without attribution headers) lists as `99.0.0`.
- Treat an empty subscription list as a failed listing. A ChatGPT account always has models, so an empty 200 response keeps the last good rows instead of replacing them. API-key access-program discovery, where an empty list is valid, is unchanged.
- Delete the npm lookup, the six-hour cache, the 0.169.0 floor, the floor contract test, and the test mocks that existed only for them. Production: +19 / −74 lines.
- Keep the Responses `version` header unchanged. Keep Codex binary selection and update behavior unchanged.

Why this replaces the earlier designs:
- #201130 and #202284 needed a network request for a value the backend only compares numerically. Any version at or above a model's minimum shows the model.
- Peer clients hardcode a value for the same reason: Hermes `99.0.0`, Zed `0.999.0`, Crush `999.0.0`.
- #202284's concern was that an OpenClaw version goes into a Codex-version parameter. The same value already passes the same gate on every Responses turn, and an npm-latest value does not describe the binary that runs a turn either.
- A version starting with 2026 stays above every Codex 0.x release, so new models appear on launch day without a lookup.
- The version check is stricter than #201493's: suffixes are dropped instead of sent, because no live probe has tested a prerelease string.

Accepted edge cases (code comment in `base-url.ts`):
- A Codex-harness binary older than a listed model fails that turn with the existing update instructions and **Start a new session** (#201130). npm-latest had the same tradeoff.
- An old OpenClaw release can list a future model whose request shape it does not support yet. Every fixed-version and npm-latest approach has this.

I also considered an omp-style background npm refresh with persistence (oh-my-pi `codex-version.ts`). Plugin keyed state is unavailable in the catalog worker threads where discovery runs (`Shared-state admission requires the host broker`). An in-memory variant still needed a network request and reset to the floor on every restart.

## User Impact

- ChatGPT subscription users see newly launched models without an OpenClaw release, without a network lookup, and without depending on npm availability.
- Listing makes one request: the ChatGPT `/models` call.
- A transient empty model list from ChatGPT no longer clears the model picker.

## Evidence

- **Red on main, green on the fix** (`extensions/openai/openai-codex-discovery.test.ts`):
  - The version-table cases fail on main, which makes two requests (npm, then `/models`). The fix makes exactly one, to chatgpt.com, with the expected `client_version`.
  - The empty-list case fails on main (`expected ['ready'] to deeply equal ['unavailable']`) and passes on the fix.
  - Main result: 14 of 16 failed (the 2 GPT-6.1 Sol cases pass on both).
- **Focused suites green:** `openai-codex-discovery`, `openai-provider`, `openai-provider.codex-catalog`, `openai-api-key-catalog`, `platform-access-programs`, `base-url`, `src/plugins/contracts/provider-live-listing.contract.test.ts`, `test/openai-model-discovery-auth-order.test.ts`, `test/model-account-catalog-authority.integration.test.ts`.
- **Live, real ChatGPT Pro login (2026-11-18 probe):**
  - `client_version` 2026.11.5, 0.166.0, 0.169.0 and 99.0.0 return the same 13 models, including `gpt-6.2-sol` and `gpt-6.2-astra` (`minimal_client_version` 0.166.0).
  - 0.164.0 and 0.165.0 hide GPT-6.2. 0.0.0 returns a frozen legacy list of 7 models.
  - `/responses` with `version: 2026.11.5` on `gpt-6.2-sol` returns 200.
- **End to end on this branch** (isolated Gateway from source, fresh ChatGPT device-code login, nothing live touched):
  - `models.list` returned 11 subscription models with outcome `ready`, including `gpt-6.2-sol` (1.05M context) and `gpt-6.2-astra`.
  - The Gateway log shows no `registry.npmjs.org` request.
  - A real turn on `openai/gpt-6.2-sol` returned `CXV_OK2`.
  - The same account listed identical models at 0.169.0 and 0.171.0 earlier today. No live model is currently gated between the bundled pin and npm latest, so the "floor hides a model" case was proven in tests, not live.
- **Not proven live:** a Gateway with `OPENCLAW_VERSION=unknown` (the dev tooling strips `OPENCLAW_*`). The version table covers that fallback.

## Merge Risk

Two-way door: no state, schema, config or published contract changes, and a revert fully restores the npm lookup. Blast radius: ChatGPT subscription model listing for OpenAI OAuth and token profiles. API-key listing, Responses headers and Codex binary selection are unchanged.

Co-authored-by: Daniel <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
…penclaw#202380)

Supersedes openclaw#202284. Restores the approach of openclaw#201493. Related: openclaw#201130.

## What Problem This Solves

ChatGPT subscription model discovery calls `/backend-api/codex/models?client_version=<X>`, and the backend hides every model whose `minimal_client_version` is above X. On main (openclaw#202284), X comes from a lookup of the latest `@openai/codex` on npm, cached in memory for six hours. That puts a registry request (1 s budget) on the model-listing path. A failed or slow lookup lists at the bundled 0.169.0 floor and can hide newly launched models. The in-memory cache also does not survive a restart or eviction.

## Solution

- List with the OpenClaw release that OpenClaw-harness Responses turns already send as the `version` header (provider attribution). The list and the turn use one value from one owner.
- Send only the numeric `YYYY.M.P` part (year 2026 or later). For example, `2026.11.5-beta.1` lists as `2026.11.5`. Anything else (`unknown`, `0.0.0-dev`, a bad `OPENCLAW_VERSION` override, or a proxy without attribution headers) lists as `99.0.0`.
- Treat an empty subscription list as a failed listing. A ChatGPT account always has models, so an empty 200 response keeps the last good rows instead of replacing them. API-key access-program discovery, where an empty list is valid, is unchanged.
- Delete the npm lookup, the six-hour cache, the 0.169.0 floor, the floor contract test, and the test mocks that existed only for them. Production: +19 / −74 lines.
- Keep the Responses `version` header unchanged. Keep Codex binary selection and update behavior unchanged.

Why this replaces the earlier designs:
- openclaw#201130 and openclaw#202284 needed a network request for a value the backend only compares numerically. Any version at or above a model's minimum shows the model.
- Peer clients hardcode a value for the same reason: Hermes `99.0.0`, Zed `0.999.0`, Crush `999.0.0`.
- openclaw#202284's concern was that an OpenClaw version goes into a Codex-version parameter. The same value already passes the same gate on every Responses turn, and an npm-latest value does not describe the binary that runs a turn either.
- A version starting with 2026 stays above every Codex 0.x release, so new models appear on launch day without a lookup.
- The version check is stricter than openclaw#201493's: suffixes are dropped instead of sent, because no live probe has tested a prerelease string.

Accepted edge cases (code comment in `base-url.ts`):
- A Codex-harness binary older than a listed model fails that turn with the existing update instructions and **Start a new session** (openclaw#201130). npm-latest had the same tradeoff.
- An old OpenClaw release can list a future model whose request shape it does not support yet. Every fixed-version and npm-latest approach has this.

I also considered an omp-style background npm refresh with persistence (oh-my-pi `codex-version.ts`). Plugin keyed state is unavailable in the catalog worker threads where discovery runs (`Shared-state admission requires the host broker`). An in-memory variant still needed a network request and reset to the floor on every restart.

## User Impact

- ChatGPT subscription users see newly launched models without an OpenClaw release, without a network lookup, and without depending on npm availability.
- Listing makes one request: the ChatGPT `/models` call.
- A transient empty model list from ChatGPT no longer clears the model picker.

## Evidence

- **Red on main, green on the fix** (`extensions/openai/openai-codex-discovery.test.ts`):
  - The version-table cases fail on main, which makes two requests (npm, then `/models`). The fix makes exactly one, to chatgpt.com, with the expected `client_version`.
  - The empty-list case fails on main (`expected ['ready'] to deeply equal ['unavailable']`) and passes on the fix.
  - Main result: 14 of 16 failed (the 2 GPT-6.1 Sol cases pass on both).
- **Focused suites green:** `openai-codex-discovery`, `openai-provider`, `openai-provider.codex-catalog`, `openai-api-key-catalog`, `platform-access-programs`, `base-url`, `src/plugins/contracts/provider-live-listing.contract.test.ts`, `test/openai-model-discovery-auth-order.test.ts`, `test/model-account-catalog-authority.integration.test.ts`.
- **Live, real ChatGPT Pro login (2026-11-18 probe):**
  - `client_version` 2026.11.5, 0.166.0, 0.169.0 and 99.0.0 return the same 13 models, including `gpt-6.2-sol` and `gpt-6.2-astra` (`minimal_client_version` 0.166.0).
  - 0.164.0 and 0.165.0 hide GPT-6.2. 0.0.0 returns a frozen legacy list of 7 models.
  - `/responses` with `version: 2026.11.5` on `gpt-6.2-sol` returns 200.
- **End to end on this branch** (isolated Gateway from source, fresh ChatGPT device-code login, nothing live touched):
  - `models.list` returned 11 subscription models with outcome `ready`, including `gpt-6.2-sol` (1.05M context) and `gpt-6.2-astra`.
  - The Gateway log shows no `registry.npmjs.org` request.
  - A real turn on `openai/gpt-6.2-sol` returned `CXV_OK2`.
  - The same account listed identical models at 0.169.0 and 0.171.0 earlier today. No live model is currently gated between the bundled pin and npm latest, so the "floor hides a model" case was proven in tests, not live.
- **Not proven live:** a Gateway with `OPENCLAW_VERSION=unknown` (the dev tooling strips `OPENCLAW_*`). The version table covers that fallback.

## Merge Risk

Two-way door: no state, schema, config or published contract changes, and a revert fully restores the npm lookup. Blast radius: ChatGPT subscription model listing for OpenAI OAuth and token profiles. API-key listing, Responses headers and Codex binary selection are unchanged.

Co-authored-by: Daniel <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
)

* fix(plugins): portable plugin-state keys for PostgreSQL

Use an exclusive SQL lower bound for Doctor pagination instead of a NUL-suffixed cursor. Reject new NUL keys in test-only plugin-state fixtures while retaining legacy SQLite adoption reads.

Add real PostgreSQL Doctor regression coverage and register it in conformance and database-worker lanes. Refs openclaw#184862 openclaw#188642.

* test: account for rebased plugin-state coverage

* test(clickclack): import legacy revocations before adoption

(cherry picked from commit 395cac7)

Release adaptation: Only exclusive SQL lower bound in kernel and Doctor pagination; preserve legacy SQLite keys and public validation. Regression exercises real Doctor paging and inspected executed SQL bindings; no NUL-key fixture policy, schema or unrelated tests.

Follow-up dispositions: 8253356 fix: preserve child results after source lifecycle changes (openclaw#202708); f3f89c7 fix: show saved child results when completion delivery fails (openclaw#202664); c45faa8 fix: align CI tests with admitted tool calls (openclaw#202655); 5c9389a fix: make channels add report required plugin install failures (openclaw#202091); 52b9188 fix: show hosted model details in `models list` without a Gateway (openclaw#202490); d248a76 fix: show an outcome when kept child chats return no answer (openclaw#202423); 5148804 fix(discord): check a queued message's access again when its turn starts (openclaw#202330); 2470d62 fix: let setup use account models with a fresh catalog (openclaw#202019); 9fa0b92 fix: let PostgreSQL Gateways start with plugin-backed secrets (openclaw#201063); c180824 fix(plugins): Talk and plugin-loading requests fail on PostgreSQL Gateways (openclaw#201976); cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 17c5fb0 fix(state): PostgreSQL state created before Template bootstrap deferral is refused as schema drift (openclaw#197425); b5c1277 fix: let resumed parents collect children stopped by restart (openclaw#201460); f920a7e chore(postgres): qualify cron completion during graceful shutdown (openclaw#201246); 1680f54 fix(openai): new ChatGPT subscription models missing until an OpenClaw release (openclaw#201130); 0d8820a fix(media): image descriptions use the ChatGPT OAuth route when OpenAI has no API key (openclaw#199299); ee3e16e test(agents): trim and fold low-value regression suites (openclaw#198916); b8029b4 test(agents): qualify PostgreSQL simple-completion acquisition (openclaw#200956); 703c82d fix(sessions): record queued input end causes and recover them across crashes (openclaw#200533); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); d565e17 fix(ci): retire deleted session fork test from inventory (openclaw#200611); 4cf12c6 chore(postgres): qualify prompt refresh and rebalance CI (openclaw#200488); d460273 fix(templates): release earlier Template-managed agents (openclaw#200303); ff75829 fix(update): --no-restart update fails when the Gateway restarts itself during Doctor's stop (openclaw#200181); 0b2ad60 chore(postgres): cover compaction watched-session prompts (openclaw#200117); b90c573 test: consolidate redundant coverage (198795 recut) (openclaw#198943); a042363 test: consolidate redundant coverage (198793, part 2) (openclaw#198936); 9bfad2b test: consolidate suites while retaining recovery owners (openclaw#198933); 4e9812c test: consolidate redundant coverage (198789, part 2) (openclaw#198932); 90814f5 fix(subagents): stops a finished sub-agent's chat being deleted before its parent reads the result; 799bc0b fix(ci): stabilize hourly fixtures and retire unused exports (openclaw#199851); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); a4cc2ad fix: undo cold-session compaction CPU and latency regressions (openclaw#199561); 55fec79 fix(agents): stop divergent mid-turn overflow recovery (openclaw#199636); 2c4413a fix: reduce Gateway stalls under filesystem pressure (openclaw#197510); 37d977f fix: output reducers are skipped in headless and Code Mode runs (openclaw#199434); c9ee264 fix(compaction): concurrent sessions wait for each other's summaries during compaction (openclaw#196550); 2471ddc feat: let agents review generated images before delivery (openclaw#198227); 21f7dc6 fix(github): publication fails with PostgreSQL session or state stores (openclaw#193749); 63d9e57 fix(ci): new PostgreSQL suites are omitted from conformance (openclaw#198390); 466a4b6 fix(telegram): steered answers quote the wrong input (openclaw#178124); 87b6f52 fix(delivery): resend routed Telegram finals after an ambiguous network failure (openclaw#192779); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); cff99b2 fix(agents): keep provider history append-only across runs (openclaw#197874); 8a328bf feat: add an opt-in usage-ranked tool index (openclaw#197128); 097e648 fix(ci): plan only executable infra tests (openclaw#197911); 76385fd fix(models): discovered models become "Unknown model" after restart or an ended sign-in (openclaw#197784); 89d4177 fix(plugin-state): guarded calls fail until Gateway restart after an unknown write outcome (openclaw#197790); baca36e fix(sessions): commit selected invitations with original messages (openclaw#184512); 699e538 fix(sessions): drain passive notices on sessions_send resumes; d6ded18 chore(ci): drop retired test-lines allocation records (2/3) (openclaw#197656); e0dd020 fix(agents): collect process results at suspended-run capacity; 4897740 feat(auth): preserve delegated OCE user profiles and permissions (openclaw#196856); 7197ce1 feat(templates): install bundled plugins through native management (openclaw#196349); 9c6ee9b feat: let Template automations start paused for onboarding (openclaw#196323); 79a6214 fix(message): retain local final replies in conversation history (openclaw#187795); caa978c feat(templates): open durable chat before verified setup (openclaw#196392); 78e73aa fix(sessions): cold PostgreSQL conversations fail after idle readers close (openclaw#189991); b6ed907 perf(sessions): persist active transcript facts for hydration (openclaw#193682); 1595dd2 feat(plugins): reauthorize accepted session work (openclaw#176886); b43ad0a fix(models): avoid reloading plugins on catalog refresh (openclaw#193903); 0947d02 fix(ci): avoid unrelated PostgreSQL runs and admit owned tests (openclaw#193870); 428ca7d feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag (openclaw#192335); c718583 fix(update): repair refuses forever after a verified update fails a later step (openclaw#193132); 3f64174 fix: deliver background replies after a reload retires the turn registry (openclaw#193130); 982f3b1 fix(imessage): report Automation failures after Gateway updates (openclaw#186117); 31b28e9 fix(agents): wait for a peer OAuth refresh before failing request auth (openclaw#192906); cf50d4a feat(storage): support read-only PostgreSQL standby inspection (openclaw#192645); 82fd4e6 fix(agents): retain stale session target refusal reasons (openclaw#192681); 8ac4e19 fix(worktrees): reserve capacity on PostgreSQL (openclaw#192537); 718b349 fix: reduce session startup stalls under storage contention; 08f4a19 refactor(skills): move Skill Workshop into its bundled plugin (openclaw#192471); 837402a fix(clawrouter): keep upstream credit failures off the shared key (openclaw#192575); f38495f fix(plugins): reject late routing from canceled runs (openclaw#192492); dc5d61a improve(sessions): reduce unnecessary maintenance query rows (openclaw#192023); c4bf0dc fix(sessions): avoid extra maintenance scans for embedded archives (openclaw#184507); e44b3d6 fix(team-reports): recover after database connection loss (openclaw#192020); 991fb33 fix(logbook): recover after database connection loss (openclaw#192011); e6d0d2e fix(test): include omitted PostgreSQL conformance suites (openclaw#191962); da5ff0f fix(codex): reject native hooks from a previous run (openclaw#191788); 09f0b0b feat(plugins): add skill usage runtime for plugins (openclaw#191661); 00b2ff4 fix: parent sessions miss child approvals with a custom session store (openclaw#189827); be44b10 fix: stop completed session writes retaining request data (openclaw#191197); d40aa7c fix(sessions): replay creation requests across Gateway restarts (openclaw#190862); d894035 fix: await Doctor shared-state repair preparation (openclaw#190875); b515cc7 feat: fork threaded conversations with Telegram support (openclaw#190783); def6349 feat(plugins): plugins can run a hidden forked turn of a session with their own tools (openclaw#190950); d983e34 feat(plugins): plugin commands can continue the agent with a replacement prompt, on every channel (openclaw#190908); ea3f0b8 fix(ci): provision Node test prerequisites and retain Baseten routing (openclaw#191050); 29503e1 fix(update): Gateway stays stopped after the updater process dies mid-update (openclaw#188497); fc8c2d0 fix(update): preserve unfinished handoff artifacts (openclaw#190571); 7c26e8c fix(ci): cover PostgreSQL managed update handoffs (openclaw#190336); 4913d41 fix(ci): prevent truncated PostgreSQL target listings (openclaw#189509); 8925f62 fix(gateway): start restored PostgreSQL homes on the first attempt (openclaw#190291); 177fe32 feat(models): preserve inference capabilities in opt-in catalog v3 (openclaw#189678); 7faf32d feat: retain repository disk authority through recovery (openclaw#189106); a658df3 feat(database): capture externally quiesced SQLite migrations; 0f9e7f7 feat(database): capture exact SQLite migration capsules; 4fb684e feat(backup): add PostgreSQL local companion checkpoints; c89a101 fix(doctor): migrate auth profiles on PostgreSQL stores (openclaw#189639); 799de09 fix(ci): split oversized workspace and setup files (openclaw#189356); 21ee847 fix(acp): keep completed run conversations resumable (openclaw#189273); fce0e56 perf(sessions): open cold history without restoring archives (schema 39) (openclaw#188397)

Validation: Baseline1 NUL-binding assertion failure/21passing; candidate22/22passes (188693-green.log). Real SQLite Doctor path and generated SQL proved; no native PostgreSQL server execution claimed.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0895146d8c1493146f5c6461eee0b10c329bdd1e)
(cherry picked from commit f8ccaa70bc9773d6bbb569bc0e275eee0c544ead)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex extensions: openai extensions: xai P2 Normal backlog priority with limited blast radius. plugin: file-transfer proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant