Repository navigation
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. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 5:19 AM ET / 09:19 UTC (Revision 9). ClawSweeper reviewWhat this changesThe shared thinking controls stop interpreting provider-native effort labels as user aliases, with regression coverage for unsupported advanced choices. Merge readiness✅ Ready for maintainer review Still necessary: current main and the latest release retain the advertisement mismatch. The narrowed patch follows the established mapping policy, has convincing before/after evidence, and introduces no actionable correctness finding. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw derives thinking choices from model capabilities and provider policy. The shared profile feeds model pickers, session validation, and execution-level selection. flowchart LR
A[Configured model capabilities] --> C[Shared thinking profile]
B[Provider policy and explicit mappings] --> C
C --> D[Model picker choices]
C --> E[Session selection validation]
E --> F[Effective thinking level]
F --> G[Provider request]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1, Tests +29. Total +28 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep capability advertisement aligned with exact provider labels while retaining explicit mappings and the existing saved-session clamping behavior. Do we have a high-confidence way to reproduce the issue? Yes: a custom model declaring high plus unmapped MAX/XHIGH exposes advanced choices through current main's alias normalization, while transport resolution uses exact labels. Source inspection and supplied before/after Gateway evidence establish the path; this review did not execute it. Is this the best way to solve the issue? Yes: removing user-alias conversion at capability advertisement is the narrow repair and preserves the documented explicit-mapping contract without changing transport policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against defa96fde13c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
Merged as f04209e. Thanks @MasterSwords1 for the report and compatibility work. Thinking controls now stop offering unsupported aliases for provider-native effort labels. Explicit mappings and lowercase efforts retain their existing behavior. Real Gateway-to-HTTP proof confirmed the fix, unchanged session/account/runtime state after rejected selections, and working mapped requests; 137 focused tests and exact-head hosted CI passed. The related #90703 remains open because its broader proposal only partially overlaps this fix. |
Related: #144866, #90703
What Problem This Solves
Fixes thinking controls offering and accepting advanced levels from provider-native labels such as
MAXorXHIGH, even though the actual model request silently uses a lower level.User Impact
The model picker, session validation, and execution now agree on which advanced levels a custom provider supports. Lowercase canonical efforts still work, and explicit mappings such as
max: "MAX"preserve the provider's exact wire value. Unsupported selections fail without changing the session or its runtime/account selection.Why This Change Was Made
The shared thinking profile incorrectly applied user-input aliases to provider-native capability labels. It now reads those labels exactly, preserving the existing explicit-mapping policy. Provider-owned profiles, explicit maps, and null opt-outs are unchanged; no new aliases or transport policy are introduced.
The earlier lowercase capability-admission bug is already fixed on main. This update addresses the remaining inconsistent advertisement rather than restoring the older transport changes.
Evidence
A real isolated Gateway and secretless loopback HTTP provider exercised
models.list → sessions.patch → chat.send → chat.history:MAX/XHIGHmax/xhigh; actual wire usedhighhighsendshighmaxmaxmax → MAXmappingmax, wireMAXRejected candidate selections left the complete persisted session row unchanged. A saved synthetic account selected through
/model, its explicit OpenClaw runtime, and model identity survived both rejection and a subsequent real HTTP turn. A copied pre-fix session now displays its effective supported level instead of the unavailable Maximum choice.