Repository navigation
Description
Summary
Codex accepts model_reasoning_effort = "none" and bb's reasoning ladder has a none level, but the Codex provider cannot run a thread with it. The provider ladder omits none, so a Codex custom model (which inherits that ladder) is refused, and the session config maps none to nothing and throws Codex does not support the none reasoning level. I expected none to reach Codex as model_reasoning_effort = "none", like every other level the provider declares.
Versions and environment
- bb
main@17b19716c5a00bf29a6b51798ddb07b72acaf259(bb-app 0.45.0); first seen on 0.43.0 - codex-cli 0.157.1
- Codex with a custom model provider and a custom model id (for example an OpenAI-compatible endpoint serving a model that does not reason)
Steps to reproduce
Unit-level repro at the exact code path (the live symptom is below):
- In
plugins/provider-codex/src/session-params.test.ts, the existing assertion documents the behaviour:configFor({ ...FULL_OPTIONS, reasoningLevel: "none" })throwsCodex does not support the none reasoning level. apps/server/test/system/execution-options.test.ts("uses the provider reasoning ladder for codex and pi custom models") shows a Codex custom model gets exactly["low", "medium", "high", "xhigh", "max", "ultra"], with nonone.
Live (expected from the code above, not run against a live server for this report): spawning a thread on a Codex custom model with reasoning none is refused because none is not in the ladder. Omitting the level does not help: it resolves to medium, which a model without reasoning support rejects, or which runs a reasoning model with reasoning.
Expected vs actual
Actual: Error: Codex does not support the none reasoning level.
Expected: config.model_reasoning_effort === "none"
Evidence
- The mapping drops
none:bb/plugins/provider-codex/src/models.ts
Line 36 in 17b1971
case "none": - The session config then throws:
function toCodexReasoningEffort( - The provider ladder omits it:
bb/plugins/provider-codex/server.ts
Line 49 in 17b1971
reasoningLevels: ["low", "medium", "high", "xhigh", "max", "ultra"], - Custom models inherit the ladder:
getSupportedReasoningLevelsForProvider(registry, customModel.providerId),
What you ruled out
- Codex itself accepts
none(model_reasoning_effort = "none"sendsreasoning.effort: "none"on codex 0.157.1). - Catalog models are unaffected: their efforts come from Codex's model list, which this change leaves alone.
- Searched open and closed issues for Codex reasoning
none; found none.
Proposed fix (prototype)
RIMTHAN-LAB@aa653a39b (branch codex-reasoning-effort-none): declare none (label "None") on the Codex ladder and map it to Codex's none effort; ultracode still has no Codex effort. Tests: models.test.ts and session-params.test.ts assert the mapping and the config, and the execution-options assertion includes none. The full bb-plugin-provider-codex suite (350 tests), its tsc and oxlint pass. I have not run the server suite locally for the one-line assertion change.
Happy to open it as a PR once approved.
Suggested priority and effort
Low: it affects Codex custom models served by endpoints without reasoning support. Effort is very low.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 5, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-codex,confirmed-repro.nonefrom its custom-model ladder and maps it to null, causing session configuration to throw before startup.git diff --checkpass. CI is still running.Preserve disabled reasoning in Codex sessions (get-bb#4972)