Repository navigation
fix(clawrouter): honor advertised reasoning efforts - #120631
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 1:46 PM ET / 17:46 UTC. ClawSweeper reviewWhat this changesThe PR carries ClawRouter’s advertised per-model reasoning efforts into OpenClaw’s model metadata and thinking-level picker. Merge readinessNo concrete patch defect found. This maintainer-labeled PR remains necessary, but the mandatory direct Codex and producer-contract inspection cannot be completed because the sibling checkouts are absent and GitHub DNS is unavailable. Priority: P2 Review scores
Verification
How this fits togetherClawRouter converts a credential-scoped remote catalog into OpenClaw provider models and their selectable thinking levels. The selected level then flows through the provider runtime to the routed OpenAI-compatible model. flowchart LR
Catalog[ClawRouter catalog] --> Parser[Catalog parser]
Parser --> Metadata[Model capability metadata]
Metadata --> Profile[Thinking-level profile]
Profile --> Runtime[Provider runtime]
Runtime --> API[Routed model API]
Decision needed
Why: Repository policy forbids a Codex-backed merge or proof-sufficient verdict without direct sibling Codex source inspection, which this read-only environment cannot perform. Before merge
Agent review detailsSecurityNone. PR surfaceSource +74, Tests +138. Total +212 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the metadata-driven provider-plugin repair, then restore the direct Codex and producer contract checks and capture an exact-head dispatch result before landing. Do we have a high-confidence way to reproduce the issue? Yes—current main drops catalog-specific effort metadata at the model builder, while the generic fallback retains minimal; the PR’s source path directly replaces that behavior. The after-fix live dispatch was not independently observed here. Is this the best way to solve the issue? Unclear—the metadata-driven plugin boundary is the best OpenClaw-side design and avoids model-ID special cases in core, but the producer and Codex contracts could not be directly checked. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e4309e0cc7a7. LabelsLabel 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 (1 earlier review cycle)
|
|
Land-ready proof for exact head
The PR body now contains the durable detailed evidence and the explicit proof gap. |
…0807 * origin/main: fix(qa): honor Crabbox SSH fallback ports (openclaw#120539) refactor(core): adopt normalization-core leaf helpers across production (openclaw#120350) fix(release): scope upgrade plugin credentials (openclaw#120666) fix(ai): preserve long Responses sessions after server compaction (openclaw#120457) fix(test): keep fork E2E setup builds observable (openclaw#120653) fix(cloud-workers): retain provider operation ownership (openclaw#120661) docs: runners plan — one placement model for sessions, devices, and cloud (openclaw#120657) refactor(cli): inline state migration policy (openclaw#120641) feat(update): scheduled update campaigns with countdown, dev-channel auto-update, and Updates settings page (openclaw#120506) chore(i18n): refresh native locales (openclaw#120614) fix(ci): retry transient artifact API reads (openclaw#120654) fix(clawrouter): honor advertised reasoning efforts (openclaw#120631) fix(infra): unify env-truthiness, missing-path, realpath, and abort-sleep semantics (openclaw#120359) fix(maintainers): parse merge comment URL structurally (openclaw#120649) fix(ui): label only operator-pinned runtimes in model picker rows (openclaw#120646) docs(agents): replace exact-head re-review gate with 12-hour review window # Conflicts: # src/agents/payload-redaction.ts
What Problem This Solves
Fixes an issue where Claw Router users selecting reasoning effort for GPT-5.6 would see OpenClaw's generic
off/minimal/low/medium/highfallback because the router catalog previously omitted model-specific effort metadata. That list stopped athighand could include an unsupportedminimalchoice.Paired producer change: openclaw/clawrouter#110, merged as openclaw/clawrouter@ca27bc4.
Why This Change Was Made
The Claw Router plugin now consumes the producer's bounded
supportedReasoningEffortscatalog field, projects it into the existing model compatibility contract, and resolves the exact advertised OpenClaw effort profile. The paired producer and consumer fixes make the authoritative listoff/low/medium/high/xhigh/max, plus the intentional logical OpenClawultratier wheremaxis available. Rows without metadata retain the existing generic fallback.The implementation is metadata-driven: it adds no model-name regex and changes neither core reasoning semantics nor the Control UI. This change was AI-assisted and reviewed before publication.
User Impact
Claw Router users get effort choices that match the selected model's advertised capabilities. Unsupported values are filtered at the catalog boundary,
minimalis no longer offered when the router does not advertise it, and advancedxhigh,max, and logical OpenClawultrachoices remain available. Catalogs without the new metadata behave exactly as before.Evidence
a3304ed79b10131c4a783ac0d67d739a696c225c; CI run https://github.com/openclaw/openclaw/actions/runs/31266728685 completed successfully, includingopenclaw/ci-gate./v1/catalog, advertised GPT-5.6 effortsnone/low/medium/high/xhigh/max, and omitted the field for GPT-5.5. Direct inspection confirmed omitted metadata remains omitted, empty/duplicate/unsupported lists are rejected at compilation, and valid partial lists pass through exactly.codex-rs/models-manager/models.jsonadvertises GPT-5.6 reasoning levels,codex-rs/app-server-protocol/src/protocol/v2/model.rsexposessupported_reasoning_efforts, andcodex-rs/core/src/client.rsmaps logicalUltrato providerMax.node scripts/run-vitest.mjs extensions/clawrouter/provider-catalog.test.ts extensions/clawrouter/index.test.tspassed 21 tests across 2 files.git diff --check origin/main...HEADpassed.node scripts/check-changed.mjs -- ...route could not start its remote backend because Blacksmith/Testbox and managed Crabbox broker authentication were unavailable. The trusted-source local fallback completed successfully with extension typechecks, lint, formatting, plugin boundaries, guards, dead-code checks, the database-first guard, and import-cycle checks.minimalwith allowed choicesoff/low/medium/high/xhigh/max/ultra; confirmedxhigh,max, andultrareached provider dispatch; confirmed absent metadata retained the genericminimalfallback; and bounded malformed metadata to valid choices only.agent execstopped before thinking validation withprepared model runtime publication timed out. No freshminimalrejection orxhigh/maxdispatch is claimed from that attempt; the prior source-blind CLI proof remains the behavior evidence for those cases.