Skip to content

Codex provider refuses reasoning effort none, which Codex accepts #4958

Closed

Description

@lebryk

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):

  1. In plugins/provider-codex/src/session-params.test.ts, the existing assertion documents the behaviour: configFor({ ...FULL_OPTIONS, reasoningLevel: "none" }) throws Codex does not support the none reasoning level.
  2. 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 no none.

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

What you ruled out

  • Codex itself accepts none (model_reasoning_effort = "none" sends reasoning.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

  1. added theissue type on Oct 5, 2026
  2. added
    providers
    provider-codex
    confirmed-repro
    on Oct 5, 2026
  3. bb-slop-cop commented on Oct 5, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    AGENT GENERATED

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-codexproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions