Repository navigation
feat(codex): request Ultrafast by default when the catalog advertises it - #163320
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 2:50 AM ET / 06:50 UTC (Revision 2). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +15, Docs +8, Generated 0. Total +23 across 10 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
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.
…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).
…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.
…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).
…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.
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: falseto 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
serviceTierscontract was inspected inapp-server-protocol/src/protocol/v2/model.rsandapp-server/src/models.rs. OpenClaw's existingmodels.tsadapter normalizes tier objects to IDs before selection; no new selection owner is introduced.Evidence
priorityinstead of advertisedultrafast) and passed after the change.node scripts/run-vitest.mjs extensions/codex/src/app-server/run-attempt.test.ts --maxWorkers=1took 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.node scripts/check-changed.mjs --base origin/mainpassed 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.git diff --checkpassed.Validation ran on Blacksmith Testbox with the lane's original base
9646ebea249758642024b71eccb876ab40d3d5d8pinned as the isolated remoteorigin/main; no tests, typechecks, or builds ran on the Mac. Proof uses the app-server test harness, not a live provider request.