Repository navigation
fix(models): expose custom max and ultra reasoning tiers - #115690
Merged
Merged
Conversation
steipete
force-pushed
the
codex/fix-custom-reasoning-levels
branch
from
July 29, 2026 06:56
cc6446c to
3a57f79
Compare
steipete
force-pushed
the
codex/fix-custom-reasoning-levels
branch
from
July 29, 2026 07:03
3a57f79 to
14067d8
Compare
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
…5690) * fix(models): honor custom advanced reasoning levels * fix(ci): restore code mode matrix boundaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #115451
What Problem This Solves
Fixes an issue where users registering reasoning models under custom providers could select
xhighbut had explicitly declaredmaxand logicalultrarejected before any model request. Theagentandagent exechelp text also omitted the supportedultratier.Why This Change Was Made
The generic thinking-policy fallback now derives every advanced canonical level from the selected catalog row instead of special-casing only
xhigh. Provider-owned profiles remain authoritative, and logical Ultra is added only for OpenClaw/auto runtimes when the provider explicitly supports Max; Codex runtime still requires its own native capability metadata. Both agent commands now render their help from the canonical thinking-level list.The first CI run also exposed two unrelated failures already present on its merge base. This branch fixes them rather than landing onto red
main: it formats the new Code Mode model-matrix script and routes the root test through that script's evidence-validator export instead of deep-importing QA Lab.User Impact
Custom Azure and OpenAI-compatible registrations can use their declared
maxcapability, and OpenClaw can apply its Ultra orchestration tier on top of that Max-capable route. Models capped atxhighremain capped.Evidence
xhighbut omittedmaxandultra.node scripts/run-vitest.mjs src/auto-reply/thinking.test.ts src/cli/program/register.agent.test.ts test/scripts/code-mode-model-matrix.test.ts test/extension-test-boundary.test.ts— 119 passed.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 node scripts/check-changed.mjs— passed across core, scripts, tooling, and root-test lanes.tbx_01kyp7f8y0515qkafckhrmpxrh: CLI help advertisesultra; custommaxandultraboth reached the configured loopback Responses transport; a control model declaring only throughxhighwas rejected before dispatch.pnpm build— passed on the same Testbox.origin/mainis clean. An earlier finding about Ultra runtime boundaries was accepted and fixed.d06c7ac055920c7cb140c25ebda3f3db20197b45:codex-rs/protocol/src/openai_models.rsaccepts Max/Ultra,codex-rs/core/src/client.rsmaps Ultra requests to Max, and multi-agent mode consumes Ultra as proactive orchestration.AI-assisted: implemented and reviewed with Codex; the maintainer verified the source, dependency contract, focused tests, changed gate, and built CLI behavior.