Repository navigation
feat(ui): select Ultrafast for supported accounts - #160352
Conversation
Co-authored-by: steipete <[email protected]>
|
🦞👀 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: blocked before merge. Reviewed September 30, 2026, 3:40 AM ET / 07:40 UTC (Revision 17). ClawSweeper reviewWhat this changesAdds account-aware Standard, Fast, and Ultrafast choices to the Control UI and carries the selected speed through Gateway sessions, native clients, Codex turns, documentation, and tests. Merge readiness⛔ Blocked before merge - 6 items remain Keep this PR open. Current main still has only the binary Fast control, and the paired feature issue remains open. The prior command-confirmation finding is fixed; the remaining merge questions concern live contract and platform proof. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI gets model and account availability from the Gateway, then saves the selected speed on a session. The Gateway presents that preference to clients and the Codex plugin checks the selected tier again when starting a turn. flowchart LR
A[Selected account and model] --> B[Authenticated catalog]
B --> C{Ultrafast available?}
C -->|Yes| D[Three speed choices]
C -->|No| E[Standard and Fast]
D --> F[Gateway session preference]
E --> F
F --> G[Codex turn tier]
F --> H[Legacy client presentation]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one account-scoped speed control that offers only verified tiers, preserves saved Fast opt-ins and older clients, and checks the chosen tier again at the Codex turn boundary. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds a tier choice rather than repairing a defined defect. Current main's binary switch establishes the missing UI capability. Is this the best way to solve the issue? Yes: extending the existing composer, session, catalog, and turn owners is a maintainable path. The external-provider and native-client contracts still need direct validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ecbe1861efd5. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
Negotiate speed decoding per connection and keep canonical session state intact. Fence personal-account catalog requests at final guarded HTTP dispatch. Refresh the measured UI boot manifest without changing performance limits. Co-authored-by: steipete <[email protected]>
Resolve the actual main conflicts while preserving the reviewed Ultrafast implementation and compatibility/authority repairs. Carry capability negotiation into the current browser handshake owner and legacy event projection into the current session event owner. Reuse main's provider outcome scoping and typed child-session patching. Keep the updated slider behavior and relocate the overlapping handshake proof without duplication. Co-authored-by: steipete <[email protected]>
Move the existing account-scoped result projection into the already imported catalog helper without changing its behavior. Keep the provider owner below its existing line-count ratchet. Co-authored-by: steipete <[email protected]>
Resolve the actual conflict with main's normalized preference owner, retaining the shared normalizer and Ultrafast validation message. Preserve unchanged compatibility and outbound-authority repairs. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review The released-client compatibility and final outbound account-authority repairs are now published at da594c9. Current boundary proof, conflict-integration evidence, and remaining platform limitations are in the updated PR body. |
|
🦞👀 Re-review progress:
|
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Share the direct command, directive reply, and system-event confirmation formatter so the saved Ultrafast tier is named accurately. Include the accepted manual value in help and docs without advertising an unverified optional native-menu choice. Preserve boolean Fast, Auto, reset, authorization and persistence behavior. Three regressions fail before repair; 274 focused cases pass afterward. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
38 upstream commits, including the seventh Feishu, Telegram and Matrix cleanup pass (openclaw#161667) and an Ultrafast config schema change (openclaw#160352) that moved the core and plugin config baseline hashes. One conflict, in docs/.generated/config-baseline.sha256. openclaw#160352 changed the core and plugin hashes 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 outside the nested node_modules install. The counts stay at core 2475, channel 3788, plugin 4444. The core and plugin hashes now match upstream/main and the channel hash stays this branch's, as predicted, and the three generated-file checks pass there. extensions/feishu/src/reply-dispatcher.ts merged cleanly. openclaw#161667 rewrote buildCombinedStreamText as two joins, away from the lines this branch changes. Its other Feishu files (card-ux-*, mention.ts, post.ts) are not touched by this branch. Feishu: 102 files and 1521 tests in the extension project, 17 files and 247 tests in the database-workers project. The forwarder test and the routing guards pass, 437 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.
* feat(ui): select Ultrafast for supported accounts Co-authored-by: steipete <[email protected]> * fix(gateway): preserve Ultrafast compatibility and account authority Negotiate speed decoding per connection and keep canonical session state intact. Fence personal-account catalog requests at final guarded HTTP dispatch. Refresh the measured UI boot manifest without changing performance limits. Co-authored-by: steipete <[email protected]> * refactor(openai): keep account catalog outcomes together Move the existing account-scoped result projection into the already imported catalog helper without changing its behavior. Keep the provider owner below its existing line-count ratchet. Co-authored-by: steipete <[email protected]> * test: refresh Ultrafast tool prompt fixtures Regenerate the canonical Codex dynamic-tool fixtures for the authorized Ultrafast speed value. Update only that enum value and its derived size/hash metadata; keep snapshot checks enabled. Co-authored-by: steipete <[email protected]> * fix: stop account catalog requests after default unlink Bind automatic account selections to the canonical profile writer's committed link authority and carry the real request scope through final guarded dispatch. Keep explicit retained account selections usable after unlink and evict failed discovery custody. Preserve the existing active Auto Ultrafast opt-in while explicit Fast stays priority. Co-authored-by: steipete <[email protected]> * refactor(codex): use narrowed Auto activation flag Keep the reviewed Auto tier predicate while satisfying the typed boolean lint contract. Co-authored-by: steipete <[email protected]> * fix(ui): share speed applicability for optional Ultrafast Respect the selected request mapping before offering an optional entitled tier. Preserve all three choices on eligible routes and clearable stored preferences on unsupported routes. Reproduced the contradictory catalog regression and passed 59 unit/Chromium cases; scoped independent review found no actionable P0/P1. Co-authored-by: steipete <[email protected]> * fix(ci): export manifest in same-revision preflight harness Restore the trusted file omitted when the inline manifest moved out of ci.yml in 57aad03. Actual preflight job109720001696 failed before tests with MODULE_NOT_FOUND; real Git push and PR materialization fixtures reproduce the same omission. Keep the canonical index export owner, regenerate its workflow projection, and preserve all source/credential guards. Fifteen materialization variants, five import/size checks, root test types, and focused independent review pass. Co-authored-by: steipete <[email protected]> * fix(ci): satisfy extracted manifest static contracts Repair inherited check-lint failures from the manifest extraction without changing CI routing: avoid namespace shadowing, retain error cause and the diagnostic callback string contract, preserve nonmutating shard copies, and apply required branch syntax. All1259 scripts lint clean;45 planner/import/size cases, formatting, UI i18n, styles, ratchet and independent review pass. Co-authored-by: steipete <[email protected]> * fix(ci): centralize dependency-free workflow flag parsing Remove the extracted manifest local coercion helper and preserve its exact narrow Boolean grammar under the existing script argument owner. Register the canonical declaration rather than weakening the guard, and carry its runtime through trusted preflight materialization and fixtures.77 argument cases,11 declaration-guard cases,71 scoped integration cases, types, lint, export scans and remaining guard commands pass; independent review has no actionable P0/P1. Co-authored-by: steipete <[email protected]> * fix(gateway): separate model publication authority from selection scope Keep the actual request lifetime in selected-account HTTP assertions without treating every anonymous unscoped catalog read as a personal account projection. Restore the established models.list response shape; no assertions weakened.177 model/catalog/session cases and10physical HTTP authority cases pass, together with types, lint, ratchet and independent review. Co-authored-by: steipete <[email protected]> * fix: preserve session response argument tuples Forward the original response tuple while projecting successful legacy payloads, without appending optional undefined arguments. Co-authored-by: steipete <[email protected]> * fix(codex): preserve existing Ultrafast opt-ins Keep the v2026.9.7 Fast and active Auto opt-in semantics while adding explicit per-session Ultrafast. Standard still clears the tier. Cover cold and warm native turn requests without requiring a migration. Co-authored-by: steipete <[email protected]> * test(ui): distinguish speed labels from model names Match the complete Effort and Speed section labels rather than the Speed only fixture model. Retain the independent absence assertions for reasoning and speed controls. All four failures reproduced before the repair; the complete 13-case bundled browser file passes afterward. Co-authored-by: steipete <[email protected]> * test(openai): intercept the shared transcription socket Update the two stale socket mock registrations after the upstream transport consolidation. Keep the actual provider/session code, fake peers, assertions, timeouts, and Bun transport guard unchanged. All 86 OpenAI shard files pass: 1263 passed and one existing skip. Co-authored-by: steipete <[email protected]> * test(gateway): construct complete session reset callers Replace partial caller objects cast as never with the existing typed session mutation client fixture. Preserve provenance and required-sandbox assertions and the production client capability contract. Both CI failures reproduce before the repair; all 15 reset-model cases pass afterward. Co-authored-by: steipete <[email protected]> * fix: confirm the selected Ultrafast command mode Share the direct command, directive reply, and system-event confirmation formatter so the saved Ultrafast tier is named accurately. Include the accepted manual value in help and docs without advertising an unverified optional native-menu choice. Preserve boolean Fast, Auto, reset, authorization and persistence behavior. Three regressions fail before repair; 274 focused cases pass afterward. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
Closes #160336
What Problem This Solves
The composer only has a Fast toggle, so people with Ultrafast access cannot select that tier explicitly.
User Impact
Choose Standard, Fast, or—only when authenticated discovery confirms access for the selected account, model, and runtime—Ultrafast. Standard shows only effort on the composer chip. Unknown or unavailable Ultrafast is omitted, without a disabled option or upsell.
Fast requests ordinary priority processing by default. The existing Codex
enableUltrafast: trueopt-in continues to upgrade Fast and active Auto on supported models, preserving shipped settings. Standard and inactive Auto stay off. Explicit Ultrafast works independently of the plugin-wide opt-in; a preference never guarantees provider fulfillment.Upgrade compatibility: the
v2026.9.7contract is preserved: savedfastMode: trueplusenableUltrafast: truestill requests supported Ultrafast. There is no silent downgrade, migration, new configuration flag, or breaking transition. The new per-session Ultrafast choice is additive.Why This Change Was Made
Reuse the existing composer, session preference, and account-catalog owners. Canonical Ultrafast state is preserved while clients without the decoding capability receive legacy-safe Fast values. Account discovery retains current request and default-link authority through the final HTTP dispatch. Unlink stops pending automatic discovery without deleting credentials or revoking saved session pins and explicit owned selections.
The reviewed SDK change is an optional
ProviderCatalogOutcome.modelServiceTiersobservation on the existing catalog result—not a new hook, endpoint, config option, required parameter, or broader credential capability. Omitted observations keep existing plugin behavior. Only ready authenticated observations are copied; account, model, runtime, route, and current-authority checks govern projection. The provider-catalog documentation records these semantics, and the already-authorized implementation/landing scope includes this additive field.Evidence
Landed: exact head
8261e641ea0bf7e591cfca9217402aff1b2808a9merged as1caaef4b6f1080556abf26bd78a21f9ed216e2b0. GitHub’s required CI, dependency, and security-sensitive gates passed (CI run). Native merge receipt and cleanup are complete; main containment and the requested human co-author trailer were verified. Individual hosted test timings were not extracted in the bounded metadata/artifact audit; the measured local wall times below remain explicitly local evidence.ClawSweeper’s late
/fast ultrafastfinding is fixed in8261e641ea0bf7e591cfca9217402aff1b2808a9: direct command replies, standalone directive acknowledgments, and queued system events now share one formatter and name Ultrafast accurately. Help and docs include the accepted manual value. Three command regressions fail before the fix; all 274 cases across six command/help files pass afterward (88.35 s wrapper), with focused lint, all seven prompt snapshots, and independent P0–P2 AutoReview passing. Generic native menus still omit an unverified optional choice because their context lacks authenticated account-tier facts. No transport, authorization, persistence, runtime-tier, or composer-layout behavior changed.CI
36679465341, job109771883754, exposed two reset fixtures that passed partial caller objects cast asnever. Both failures reproduced atclient.connect.caps. The tests now reuse the existing typed session-mutation client factory, with complete handshake/profile data; all 15 reset-model cases pass (14.09 s wrapper / 12.06 s Vitest), and assertions and production capability checks are unchanged. Focused lint and P0/P1 AutoReview pass. Actual conflicts with main9dc08b1fac6b88355393c3ed281c4e656d09a912were generated prompt/config artifacts; canonical generation and checks pass. Candidate:58f0a8ee7279d92a5a4206ae401da10d30e12b05.CI
36676846138, job109764029700, then exposed 30 stale OpenAI transcription fixtures after main’s shared-WebSocket consolidation. Barewsmocks no longer intercepted the real constructor; the same failures reproduced locally.9a7f1660b8995be276e3728e3570775cd45911e7changes only the two mock registrations to the named constructor owner, preserving every assertion, timeout, and production transport guard. The complete 86-file OpenAI shard passes 1,263 tests with one existing skip (70.19 s wrapper / 67.56 s Vitest), with host proxy/API-key environment removed for deterministic HTTP fixtures. Focused lint and independent P0/P1 AutoReview pass. Prior cancelled CI coverage remains unrun; normal successor CI is still required.CI
36675754918, job109760578212, exposed four composer-test failures: the new broad Speed-label selector also matched the fixture model named “Speed only.” All four reproduced locally. Exact section-label matching repairs the test without changing the UI or relaxing the independent control-absence assertions. The complete 13-case bundled Chromium file passes (75.94 s wrapper / 73.65 s Vitest); focused lint and independent P0/P1 AutoReview pass. The subsequent actual conflict with main982f9f8bcf0f8763a78ff23deb4224709a3ac7acwas two neighboring Sessions imports; both canonical owners are retained, and all 49 Sessions view cases pass. Candidate:dd488d1f505bb375a0b408b291bb49ca53edf4b8.Actual conflicts with main
63578b2b112fcc1c9a56ef3904d2d82ac5be1a19were confined to three generated prompt files. The canonical generator reconciled them ine4fc9842860651ff8ba5f50bfa9479c938d94240; all seven snapshots verify. The integrated browser handshake and chat-view suites pass 168/168 cases (14.81 s Vitest). No composer appearance or Codex opt-in behavior changed. The standalone node-only UI config lacked source aliases and failed before tests; the canonical UI configuration supplies those aliases and passed.Shipped opt-in preservation: 27 cold/warm native turn cases pass (65.50 s wrapper / 62.97 s Vitest), including saved Fast with the opt-in, without it, unsupported tiers, explicit Ultrafast, and Standard. Extension types and focused lint pass; independent delta AutoReview found no actionable P0/P1. No UI appearance changed.
Real Control UI exercised in Chromium with deterministic Gateway/account fixtures: all selections cross the session-patch boundary; revoking access removes Ultrafast; Standard leaves only effort. Inspected before/after images were delivered in the originating chat and remain embedded below.
The fresh ClawSweeper default-unlink finding reproduced through the registered
models.listandusers.unlinkAuthProfilehandlers, real SQLite state, and a physical HTTP listener. Before repair, unlink during auth/DNS still sent one request. After repair, both send zero; the authorized control sends one. Explicit retained account selection remains usable afterward. No authorization predicate is injected in these Gateway cases.The complete HTTP/authority suite passes 10 cases, including refusal of snapshot-backed default authority. Measured
pnpm test test/model-account-catalog-authority.integration.test.ts --maxWorkers=1wall time: 33.24 s (31.17 s Vitest, 89% transform; 10 cases execute in approximately 1.6 s). Hosted per-file CI seconds were not emitted by the failed preflight run described below, which never scheduled tests. The physical listener is suite-level; real handlers/SQLite setup proves the cross-owner revocation that a cheaper mocked predicate missed. The provider credential resolver and HTTP destination are synthetic fixtures; handlers, link mutation, authority publication, guarded dispatch, and HTTP effects are production paths.28 account-store cases pass, including commit/rollback, per-person isolation, zero-SQL retained assertions, unlink/relink non-revival, and database closure. 17 catalog-decision cases and 23 Gateway session/catalog cases pass, including saved-pin compatibility. A host-key-sensitive fixture was isolated after a same-source counterfactual proved ambient auth contamination.
28 selected Codex turn/service-tier cases pass, covering explicit Fast, Ultrafast fallback, preserved active Auto opt-in, inactive Auto, disabled opt-in, and unsupported models. The exact sibling Codex model-list/service-tier contract was personally inspected.
Full
pnpm buildpasses at023c7b2a78a38aee82adf86c03398390b8553818(6m 18.5s), including SDK declarations/exports and Control UI performance limits. Startup JS is 365,259 B gzip against the unchanged 372,347 B limit; no budget was raised.Actual main conflict at
6b2a4b4d84eba9f75c813a9e7d9bbb996cc2c330was confined to Sessions view ownership. Its nested details renderer now retains canonical speed normalization; 49 Sessions UI cases, 41 provider-settings cases, and UI types pass. This integration does not alter the approved composer layout.The additional picker finding is fenced at its state producer: optional Ultrafast requires the same request applicability as Fast. An inconsistent catalog that advertises a tier but explicitly denies speed support reproduced the old mismatch; 59 unit/Chromium cases now pass, including all three ordered labels for eligible accounts and no optional speed choice on an unsupported route. The existing Standard image was re-inspected and does contain Fast.
Core/plugin production types, state/root/plugin test-type checks, source line-count ratchets, focused lint, and independent AutoReview passed. The unlink repair adds no schema, retention, permission expansion, or final-check database query.
The first CI run exposed five stale generated prompt fixtures. The exact drift reproduced locally; the canonical generator now includes the Ultrafast enum and derived size/hash metadata. All seven fixtures pass verification. Later actual main conflicts were resolved through that same generator, not handwritten snapshots. Cancelled CI siblings are not passing proof.
Inherited CI-manifest extraction failures blocked preflight, lint, and the coercion guard. They were reproduced and repaired during this work, then main landed its own repair in
df2a29cac9ad37c31a0f5a0d977ba3e4fd833cb0. This branch adopts that implementation and removes the temporary parallel parser, declaration, registry, and export changes. The only remaining CI-tooling delta is a real-Git manifest-materialization regression. All 71 selected harness/planner/import cases pass (28.81 s Vitest / 32.13 s wrapper), as do the coercion guard, lint, canonical generator, and pinned-base ratchet. Cancelled CI siblings are not passing evidence.After the actual main
7a438dc93ec0b80882cd40d217fd9d1508f8fea3integration, 18 harness/import cases, 61 account/Gateway/HTTP cases, and 28 Codex turn cases passed, with core/UI/plugin production types and all seven prompt snapshots. The later conflict withdf2a29cwas the CI manifest only; the Ultrafast, legacy-wire, and authority repairs remain intact. Earlier full-build proof stays explicitly head-bound, not relabeled as a successor build.CI exposed a response-shape regression in ordinary
models.list: carrying request authority as account/session scope added an unwantedaccountSelectionfield. Request publication authority is now carried separately, preserving both the legacy unscoped response and the final HTTP fence. All 177 catalog/session/model-list cases and 10 physical-HTTP authority cases pass, without weakening assertions; core types, focused lint, the ratchet, and independent review pass.The next exact-head CI run exposed seven response callback tuple-arity failures: the legacy projection wrapper appended optional
undefinedarguments. The wrapper now preserves the original argument tuple and projects only a supplied successful payload. All 102 existing idempotency, sticky-model/incognito, and presentation cases pass (93.24 s wrapper), with assertions unchanged; independent delta review found no actionable P0/P1. This is scoped repair proof, not a claim that hosted CI is green.Prior-head CI run
36671072900failed two of 873 tests in the 64-file Gateway shard: Gmail watcher follow-up timed out waiting for restart, and fresh admission after worker Stop returned false. A bounded unchanged-source replay of both files passed 117/117 (39.68 s wrapper), and the Gmail case alone passed. The direct owners are unchanged from the merge base and tested main parent, but adjacent PR changes prevent attributing the failures to main. The full two-worker, Node 24 CI sequence was not reproduced; the local one-worker, Node 26 passes are diagnostic, not fixes or replacement CI evidence. No timeouts, assertions, or guards were weakened. Normal exact-head CI remains required.Validation limits: no signed-in external-provider or Apple-platform execution is claimed. Swift is unavailable on this Linux host. A separate cold-process restart/live UI readiness probe received HTTP 502 despite isolated Gateway readiness; it remains unverified, with no proxy or authorization bypass. The earlier macOS-support subset passed with its fixture environment corrected, but the whole macOS-support command was not rerun. A broader local Gateway-integration selection was refused by the managed-artifact preparation guard before tests; no guard was bypassed.
Before
After
Standard and no-access states
Requested and designed by @steipete.
Work sessions