Repository navigation
fix: stop offering Fast when the selected request cannot use it - #141852
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: blocked before merge. Reviewed September 8, 2026, 2:24 AM ET / 06:24 UTC. ClawSweeper reviewWhat this changesShares Anthropic Fast applicability between request construction and the model catalog, then disables ineffective Control UI choices while keeping saved preferences clearable. Merge readiness⛔ Blocked before merge - 1 item remains The repair remains useful: current main and v2026.9.2 still offer Fast based on provider alone. No blocking correctness finding remains, and the updated body addresses the earlier request for live Gateway/UI observations. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway combines model, route, authentication, and configuration facts into the catalog consumed by the Control UI. Anthropic request construction shares the applicability policy that determines whether the Fast control can affect a request. flowchart LR
A[Selected model and route] --> C[Anthropic applicability policy]
B[Auth and request settings] --> C
C --> D[Gateway model catalog]
C --> E[Anthropic request construction]
D --> F[Control UI Fast choice]
F --> G[Set or clear session preference]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +203, Tests +193, Docs +12, Other +4. Total +412 across 19 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one provider-owned applicability policy shared by request construction and catalog projection, preserving unknown behavior and saved-preference clearing. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main offers Fast for Anthropic generally even when its request wrapper has no applicable mapping. The body also reports a baseline live reproduction; this review did not execute it. Is this the best way to solve the issue? Yes. Sharing the provider's request policy avoids a second model-support list in the UI, while optional metadata preserves unknown cases and existing preferences. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8e47d6998abd. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
landpr-approve-unrelated-red These completed failures are unrelated to the Fast applicability change:
The sparse mock is present in 1cb9f70, authored by joshavant and committed by Josh Avant. The normal-exit cleanup branch is present in 651c1ec (#132251), authored by Peter Steinberger and committed by GitHub. Their parent diffs and ancestry were checked. These identify existing owners; neither attribution claims that one commit alone caused the complete interaction. Main run34187578388 is successful but has a different selected test set. The inspected recent completed main failures34182839906 and34178987125 concern other checks. No matching-main-run claim is made; the explicit causal record supports the standing unrelated-red exception. All original failure evidence remains retained. The normal exact-head local-review and server merge checks still apply. |
|
landpr-approve-unrelated-red |
|
Landed after a clean exact-head local review and independent public acceptance of all four clauses. Bug: the Control UI offered Fast for Sonnet requests with no Fast mapping.
Proof uses matching built Gateway/UI The guarded merge used the standing unrelated-CI record, with complete causal explanation:
Main34187578388 passed with a different selected test set. Inspected main failures 34182839906/job101925587161 and 34178987125/job101914126955 concern other checks. No matching-main-job claim is made; the explicit causal record supports the exception. The CI run remains recorded as red. |
Related: #136257, #141852 ## What Problem This Solves Fixes an issue where users could enable a Fast choice that has no effect for a selected OpenAI, xAI, or MiniMax request. Models without a Fast alias and OpenAI requests controlled by an explicit service tier still fell back to provider-wide support. ## Why This Change Was Made Provider metadata shares the existing alias and service-tier rules with request construction. The existing selected-model capability field carries the result to controls. Explicit-tier precedence, unknown native capability, and saved-preference clearing stay intact. The rules use existing lightweight internal entries. MiniMax pricing and its proposed M3 paid lane remain separate work in #107378. ## User Impact Known no-op Fast choices are disabled, while supported requests keep their current mapping. Typed `/fast` commands continue to set or clear preferences. The capability describes local request mapping; it makes no speed, pricing, entitlement, or native-runtime claim. ## Evidence The real compiled Gateway and its authenticated client produced these results: | Selected non-native request | Baseline capability | Candidate capability | | --- | --- | --- | | xAI `grok-4.3` | absent | false | | xAI `grok-3` | absent | true | | MiniMax `MiniMax-M2.5` | absent | false | | MiniMax `MiniMax-M2.7` | absent | true | | OpenAI Responses with explicit `flex` | absent | false | | OpenAI Responses without an explicit tier | absent | true | - All six rows remain available under the selected OpenClaw runtime. Public output excludes credentials, endpoints and private parameter records. - Fresh independent acceptance passed all six metadata clauses after its own nonce command. Both Gateway runs stopped; the independent service recorded no remaining processes and enforced memory, CPU and swap limits. - 43 focused checks pass: provider rules, selected-model/agent parameters, dynamic aliases, composed OpenAI/ChatGPT tier precedence, and the corrected auth-refresh expectation. Formatting and lint pass; the changed assertion and normal hooks were verified on Testbox. - Baseline source is `127e3ffa3080841cef31927c57071c7ae9ae52ae`, exercised through source-equivalent build `1b284af37e091fab9fc58297e4478a0f701ed6fd`. Candidate proof uses actual CI build `d85807c2b634c885fd1d5caa2d17c99cf5601d9f` from run [34291602461](https://github.com/openclaw/openclaw/actions/runs/34291602461). The later commit changes only the expected metadata in one test, so production proof remains valid at its original build identity. - The earlier CI run caught that expected-row mismatch and two channel test timeouts before their injected reply callbacks. Full history is retained; those timeouts are not claimed fixed. Current results are in [PR checks](https://github.com/openclaw/openclaw/pull/142682/checks). - Generic control, unknown-case and preference-clearing proof from #141852 is retained for unchanged consumers. Fresh acceptance covers the new public metadata; it does not claim browser clicks or vendor inference. Co-authored-by: Ayaan Zaidi <[email protected]>
…claw#141852) ## What Problem This Solves The Control UI offers Fast for some selected requests that cannot use it. Sonnet 5 can enable and save Fast even though its Anthropic request has neither native Fast nor Priority Tier mapping. ## Why This Change Was Made Anthropic request construction and the lightweight provider policy now share one applicability plan. The private model projection uses the selected route, authentication and existing parameters to publish an optional result. The UI disables confirmed no-op choices and preserves existing behavior when applicability is unknown. ## User Impact Saved Fast preferences remain visible and clearable. Mapped Opus requests remain usable. Preference inheritance, explicit service-tier precedence, native runtime behavior and transport restrictions stay intact. Applicability does not imply vendor entitlement, fulfillment or speed. ## Evidence - The real baseline Gateway and matching served UI offered and saved Sonnet Fast. Clearing the preference and the Opus control also worked. - The candidate built Gateway and served UI disable fresh Sonnet Fast, allow clearing a saved Sonnet preference, and allow Opus Fast with matching public session readback. An independent validator confirmed those three clauses. - The same independent validator freshly passed the remaining unknown-applicability control: API control was selected, Fast remained usable with applicability absent, and public readback recorded the preference on that model. All four public clauses pass. Both earlier unavailable-runtime fixture failures remain preserved; the final fixture uses the documented model-scoped runtime setting, without installing a native plugin. - The public runtime is build `897e3b2e`, produced by required CI from candidate `54371355`. Current head `ac933c86` adds only a type declaration correction and generated Swift fields; the exercised Linux runtime and UI are unchanged. - 53 provider/request checks, 11 focused UI checks, 3 metadata checks using the real lightweight policy loader, and 7 existing config-doc checks passed. Focused boundary checks and pinned formatting passed. No local build or typecheck ran. - Exact-head CI run 34189519641 completed with two unrelated failures. The provider-transport failure reproduces with all Fast changes removed and passes without the preceding leaking mock. The lint-status failure occurs in its unchanged synthetic command/process-cleanup fixture before lint runs. Both remain recorded with their causal evidence. Related: openclaw#136257 Co-authored-by: Ayaan Zaidi <[email protected]>
…#142682) Related: openclaw#136257, openclaw#141852 ## What Problem This Solves Fixes an issue where users could enable a Fast choice that has no effect for a selected OpenAI, xAI, or MiniMax request. Models without a Fast alias and OpenAI requests controlled by an explicit service tier still fell back to provider-wide support. ## Why This Change Was Made Provider metadata shares the existing alias and service-tier rules with request construction. The existing selected-model capability field carries the result to controls. Explicit-tier precedence, unknown native capability, and saved-preference clearing stay intact. The rules use existing lightweight internal entries. MiniMax pricing and its proposed M3 paid lane remain separate work in openclaw#107378. ## User Impact Known no-op Fast choices are disabled, while supported requests keep their current mapping. Typed `/fast` commands continue to set or clear preferences. The capability describes local request mapping; it makes no speed, pricing, entitlement, or native-runtime claim. ## Evidence The real compiled Gateway and its authenticated client produced these results: | Selected non-native request | Baseline capability | Candidate capability | | --- | --- | --- | | xAI `grok-4.3` | absent | false | | xAI `grok-3` | absent | true | | MiniMax `MiniMax-M2.5` | absent | false | | MiniMax `MiniMax-M2.7` | absent | true | | OpenAI Responses with explicit `flex` | absent | false | | OpenAI Responses without an explicit tier | absent | true | - All six rows remain available under the selected OpenClaw runtime. Public output excludes credentials, endpoints and private parameter records. - Fresh independent acceptance passed all six metadata clauses after its own nonce command. Both Gateway runs stopped; the independent service recorded no remaining processes and enforced memory, CPU and swap limits. - 43 focused checks pass: provider rules, selected-model/agent parameters, dynamic aliases, composed OpenAI/ChatGPT tier precedence, and the corrected auth-refresh expectation. Formatting and lint pass; the changed assertion and normal hooks were verified on Testbox. - Baseline source is `beca6a1c05d9dad59a9abbe6de226ac350f3a3ec`, exercised through source-equivalent build `1b284af37e091fab9fc58297e4478a0f701ed6fd`. Candidate proof uses actual CI build `d85807c2b634c885fd1d5caa2d17c99cf5601d9f` from run [34291602461](https://github.com/openclaw/openclaw/actions/runs/34291602461). The later commit changes only the expected metadata in one test, so production proof remains valid at its original build identity. - The earlier CI run caught that expected-row mismatch and two channel test timeouts before their injected reply callbacks. Full history is retained; those timeouts are not claimed fixed. Current results are in [PR checks](https://github.com/openclaw/openclaw/pull/142682/checks). - Generic control, unknown-case and preference-clearing proof from openclaw#141852 is retained for unchanged consumers. Fresh acceptance covers the new public metadata; it does not claim browser clicks or vendor inference. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Control UI allowed Fast to be saved for requests where it had no effect.
Why This Change Was Made
Request construction and provider policy now share an applicability plan. The selected route, authentication, and existing parameters supply an optional result to the UI, which disables confirmed no-op choices and preserves behavior when applicability is unknown.
User Impact
Saved Fast preferences stay visible and clearable. Supported requests remain usable; applicability does not promise entitlement, fulfillment, or speed.
Evidence
Real Gateway/browser checks reproduced the ineffective Fast choice and verified that the fix disables it, permits clearing a saved preference, retains supported Fast, and preserves unknown-applicability behavior. Public session readback confirmed selections. Provider/request, UI, metadata, and config checks passed. CI retained two unrelated failures with separate reproductions; it was not wholly green.
Consumers: Control UI Fast controls now honor confirmed request applicability.
Related: #136257.