Skip to content

fix(models): expose custom max and ultra reasoning tiers - #115690

Merged
steipete merged 2 commits into
mainfrom
codex/fix-custom-reasoning-levels
Jul 29, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/fix-custom-reasoning-levels

Conversation

@steipete

@steipete steipete commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Closes #115451

What Problem This Solves

Fixes an issue where users registering reasoning models under custom providers could select xhigh but had explicitly declared max and logical ultra rejected before any model request. The agent and agent exec help text also omitted the supported ultra tier.

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 max capability, and OpenClaw can apply its Ultra orchestration tier on top of that Max-capable route. Models capped at xhigh remain capped.

Evidence

  • Before fix: focused regression failed because the custom catalog exposed xhigh but omitted max and ultra.
  • Focused tests after rebase: 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.
  • Exact six-file changed gate: 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.
  • Built behavior proof on Blacksmith Testbox tbx_01kyp7f8y0515qkafckhrmpxrh: CLI help advertises ultra; custom max and ultra both reached the configured loopback Responses transport; a control model declaring only through xhigh was rejected before dispatch.
  • Build: pnpm build — passed on the same Testbox.
  • Codex autoreview: the final full branch against current origin/main is clean. An earlier finding about Ultra runtime boundaries was accepted and fixed.
  • Upstream Codex contract checked at d06c7ac055920c7cb140c25ebda3f3db20197b45: codex-rs/protocol/src/openai_models.rs accepts Max/Ultra, codex-rs/core/src/client.rs maps 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.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: S maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete force-pushed the codex/fix-custom-reasoning-levels branch from cc6446c to 3a57f79 Compare July 29, 2026 06:56
@steipete
steipete force-pushed the codex/fix-custom-reasoning-levels branch from 3a57f79 to 14067d8 Compare July 29, 2026 07:03
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jul 29, 2026
@steipete
steipete merged commit 6ec84bc into main Jul 29, 2026
124 checks passed
@steipete
steipete deleted the codex/fix-custom-reasoning-levels branch July 29, 2026 07:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] max/ultra reasoning tiers unreachable for custom-provider gpt-5.6-sol registrations (thinking-policy gates on bare built-in model-ids)

1 participant