Skip to content

feat(codex): request Ultrafast by default when the catalog advertises it - #163320

Merged
steipete merged 1 commit into
mainfrom
steipete/codex-ultrafast-default-on
Oct 2, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/codex-ultrafast-default-on

Conversation

@steipete

@steipete steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Related: #158703

What Problem This Solves

Codex Fast mode requires a separate Ultrafast opt-in even when the selected native model already advertises that tier through the authenticated app-server catalog.

User Impact

Fast, active Auto, and unspecified shared run controls now request supported Ultrafast automatically. Operators can set plugins.entries.codex.config.appServer.enableUltrafast: false to retain the baseline tier. Standard and inactive Auto remain off; an explicit shared "ultrafast" preference still requests the supported tier independently of that opt-out. Unsupported models, custom providers, and unavailable catalogs retain their existing fallback behavior.

Why This Change Was Made

Availability is already checked at the turn boundary, so the owner decision is to make the flag an explicit opt-out. Change the existing runtime resolver and plugin schema defaults, update the help and current documentation, and regenerate the config-doc hash. The Control UI's separate authenticated account-discovery gate is unchanged.

The native Codex serviceTiers contract was inspected in app-server-protocol/src/protocol/v2/model.rs and app-server/src/models.rs. OpenClaw's existing models.ts adapter normalizes tier objects to IDs before selection; no new selection owner is introduced.

Evidence

  • The new turn-boundary regression failed with the original runtime default (priority instead of advertised ultrafast) and passed after the change.
  • Config and service-tier suites: 84 tests passed on Testbox.
  • Full attempt suite: 152 tests passed on Testbox. node scripts/run-vitest.mjs extensions/codex/src/app-server/run-attempt.test.ts --maxWorkers=1 took 80.80 seconds including cold worker preparation; the added default-selection case took 106 ms. This existing suite proves binding, catalog lookup, dispatch, retry, and cleanup through the actual attempt entry point. Six request-order expectations now include the default catalog lookup.
  • After removing a redundant test-options spread found by lint, all 12 Ultrafast boundary cases passed again in 40.19 seconds including cold preparation (default-selection case: 161 ms).
  • node scripts/check-changed.mjs --base origin/main passed on final Testbox, including extension/type-test checks, lint, config-doc validation, and runtime import guards. The final lease ran the focused tests and gate successfully in 12m28s.
  • Independent Codex autoreview of the final staged diff: scoped-clean, no actionable P0–P2 findings. git diff --check passed.

Validation ran on Blacksmith Testbox with the lane's original base 9646ebea249758642024b71eccb876ab40d3d5d8 pinned as the isolated remote origin/main; no tests, typechecks, or builds ran on the Mac. Proof uses the app-server test harness, not a live provider request.

@clawsweeper

clawsweeper Bot commented Oct 2, 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: codex size: XS labels Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 2:50 AM ET / 06:50 UTC (Revision 2).

ClawSweeper review

What this changes

The Codex plugin automatically requests catalog-supported Ultrafast unless explicitly disabled, and updates its configuration help, documentation, and turn-boundary tests.

Merge readiness

✅ Ready for maintainer review

This maintainer-sponsored PR remains useful: current main and the latest release still require opt-in. No actionable introduced defects were found.

Priority: P2
Reviewed head: 252d006c79b134210ab3ba97bf70755c303faa74

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with meaningful boundary coverage, explicit default-change intent, and no actionable correctness findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The verified repository-admin author is exempt from ordinary external-contributor proof. Changed default selection is covered by reported attempt-boundary harness tests, which are supplemental rather than live proof; the related merged feature records native tier acceptance. No stored-data format or authority boundary changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The verified repository-admin author is exempt from ordinary external-contributor proof. Changed default selection is covered by reported attempt-boundary harness tests, which are supplemental rather than live proof; the related merged feature records native tier acceptance. No stored-data format or authority boundary changes.
Evidence reviewed 12 items Pinned introduced change: The introduced delta changes the runtime boolean default and matching manifest default, without adding a selector or protocol field.
Still necessary on current main: The fetched main revision still resolves enableUltrafast using strict equality with true, so omitted configuration remains opt-in.
Latest release retains opt-in: GitHub source for v2026.9.7 also uses config.enableUltrafast === true; the requested default has not shipped in that release.
Findings None None.
Security None None.

How this fits together

The Codex plugin translates OpenClaw speed preferences into native app-server turn requests. Its existing selector checks the selected model’s authenticated catalog before choosing Ultrafast or retaining the baseline tier.

flowchart TD
  A[Session speed preference] --> C[Codex turn preparation]
  B[Plugin configuration] --> C
  C --> D[Authenticated model catalog]
  D --> E[Supported tier selection]
  E --> F[Native turn request]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +15, Docs +8, Generated 0. Total +23 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 2 3 3 0
Tests 2 25 10 +15
Docs 5 20 12 +8
Config 0 0 0 0
Generated 1 2 2 0
Other 0 0 0 0
Total 10 50 27 +23

Review metrics

Metric Value Why it matters
Configuration default 1 existing default changed: false → true; 0 new options Omitted settings change effective tier selection on upgrade, as explicitly intended in the owner’s PR body.

Technical review

Best possible solution:

Keep automatic selection in Codex’s existing turn-boundary owner, preserving explicit opt-out, Standard behavior, and baseline fallback.

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

Not applicable as a bug reproduction: this changes an intentional default. Current-main and release source independently confirm the existing opt-in behavior.

Is this the best way to solve the issue?

Yes: changing the existing resolver and manifest default is a focused implementation that reuses catalog validation and fallback rather than creating competing selection logic.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded improvement to Codex speed selection, with no demonstrated urgent workflow failure.
  • merge-risk: 🚨 compatibility: Existing omitted settings begin requesting supported Ultrafast; the owner explicitly accepts this default change and retains a false opt-out.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified repository-admin author is exempt from ordinary external-contributor proof. Changed default selection is covered by reported attempt-boundary harness tests, which are supplemental rather than live proof; the related merged feature records native tier acceptance. No stored-data format or authority boundary changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • sjf-oa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-02T06:38:13.540Z sha 252d006 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review October 2, 2026 06:45
@steipete
steipete enabled auto-merge (squash) October 2, 2026 06:46
@steipete
steipete merged commit b56164e into main Oct 2, 2026
184 of 185 checks passed
@steipete
steipete deleted the steipete/codex-ultrafast-default-on branch October 2, 2026 06:53
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Oct 2, 2026
182 upstream commits, including the codex Ultrafast default (openclaw#163320),
which changes the codex plugin's config schema. None of them touch
extensions/feishu or any of the 43 code files this branch changes.

One generated conflict, docs/.generated/config-baseline.sha256. Main changed
the plugin hash through that schema, and this branch changes the channel
hash, so the file was regenerated from this merge rather than hand-merged.
build:docker ran in a separate detached checkout of this commit. The counts
stay core 2484, channel 3788 and plugin 4468. The core and plugin hashes
match upstream/main, the channel hash stays this branch's, as predicted, and
the three generated-file checks pass there. No code conflicts.

Feishu: 103 files and 1532 tests in the extension project, 17 files and
250 tests in the database-workers project. The forwarder test and the
routing guards pass, 453 tests. tsgo:core, tsgo:extensions,
tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and
assertion-safety ratchets against upstream/main, oxlint and oxfmt on the
43 changed code files all pass.
steipete added a commit that referenced this pull request Oct 2, 2026
…ram-account facades (#163366)

Retire the public plugin-sdk/command-auth, plugin-sdk/discord, and plugin-sdk/telegram-account subpaths early, with the Plugin SDK owner's approval (2026-10-02). No bundled runtime imports them. No official external plugin at latest or extended-stable imports them either, and the only older @openclaw/discord releases that did (2026.3.7-3.13, 2026.5.2) already import subpaths main removed earlier.

Remove the modules, package exports, entrypoint inventory, compat registrations, and obsolete tests. Move the three surviving contract tests to their focused SDK subpaths. Drop 15 internal exports orphaned by the retirement and the dead isCommandMessage and resolveDualTextControlCommandGate wrappers. Shrink the SDK surface budgets by exactly 3 entrypoints, 128 exports, 79 callable exports, and 128 deprecated exports.

Breaking change for third-party plugins that import these paths: use channel-ingress-runtime, command-auth-native, command-status, or models-provider-runtime, as described in docs/plugins/sdk-migration/import-paths.md and the removal timeline.

Landed over inherited main reds only (Codex model/list sequence tests from #163320, the memory-host-sdk boundary test fixed by 2516be9).
steipete added a commit that referenced this pull request Oct 2, 2026
…cription sequences

b56164e (#163320) made each run attempt read the app-server model
catalog (model/list) right before turn/start so it can request Ultrafast
when the catalog advertises it. #163387 and #163388 updated the
context-engine and thread-cleanup sequences; the context-engine overflow
and subscription recovery assertions still expected the old order and kept
main red (7 failures).

Add model/list before each turn/start in those assertions, matching the
existing updates. The Codex app-server serves model/list from its cached
catalog (codex-rs/app-server/src/request_processors/catalog_processor.rs
list_models; models-manager/src/manager.rs OnlineIfUncached), so the extra
read is intended behavior, not a regression.

Proof: run-attempt.context-engine-overflow.test.ts and
run-attempt.subscription.test.ts 16/16 on main d7fd9a7.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…ram-account facades (openclaw#163366)

Retire the public plugin-sdk/command-auth, plugin-sdk/discord, and plugin-sdk/telegram-account subpaths early, with the Plugin SDK owner's approval (2026-10-02). No bundled runtime imports them. No official external plugin at latest or extended-stable imports them either, and the only older @openclaw/discord releases that did (2026.3.7-3.13, 2026.5.2) already import subpaths main removed earlier.

Remove the modules, package exports, entrypoint inventory, compat registrations, and obsolete tests. Move the three surviving contract tests to their focused SDK subpaths. Drop 15 internal exports orphaned by the retirement and the dead isCommandMessage and resolveDualTextControlCommandGate wrappers. Shrink the SDK surface budgets by exactly 3 entrypoints, 128 exports, 79 callable exports, and 128 deprecated exports.

Breaking change for third-party plugins that import these paths: use channel-ingress-runtime, command-auth-native, command-status, or models-provider-runtime, as described in docs/plugins/sdk-migration/import-paths.md and the removal timeline.

Landed over inherited main reds only (Codex model/list sequence tests from openclaw#163320, the memory-host-sdk boundary test fixed by 1663d1f).
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…cription sequences

1f9ce7e (openclaw#163320) made each run attempt read the app-server model
catalog (model/list) right before turn/start so it can request Ultrafast
when the catalog advertises it. openclaw#163387 and openclaw#163388 updated the
context-engine and thread-cleanup sequences; the context-engine overflow
and subscription recovery assertions still expected the old order and kept
main red (7 failures).

Add model/list before each turn/start in those assertions, matching the
existing updates. The Codex app-server serves model/list from its cached
catalog (codex-rs/app-server/src/request_processors/catalog_processor.rs
list_models; models-manager/src/manager.rs OnlineIfUncached), so the extra
read is intended behavior, not a regression.

Proof: run-attempt.context-engine-overflow.test.ts and
run-attempt.subscription.test.ts 16/16 on main 420daf0.
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: codex merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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