Skip to content

/review can submit stale reasoning.effort after switching to gpt-5.1-codex-mini #12495

Open

Description

@GraciousGazelles

What version of Codex CLI is running?

Source build from openai/codex commit 66d5d34e6 (binary reports codex-cli 0.0.0).

What subscription do you have?

Pro

Which model were you using?

gpt-5.3-codex-spark (xhigh) -> gpt-5.1-codex-mini (high)

What platform is your computer?

Linux x86_64

What terminal emulator and version are you using (if applicable)?

tmux 3.5a

What issue are you seeing?

/review can send stale reasoning.effort = xhigh after switching to gpt-5.1-codex-mini, causing:

Unsupported value: "xhigh" is not supported with the "gpt-5.1-codex-mini" model. Supported values are: "low", "medium", and "high".

What steps can reproduce the bug?

  1. Start a session on gpt-5.3-codex-spark with effort xhigh.
  2. Switch to gpt-5.1-codex-mini with effort high.
  3. Run /review.
  4. Observe unsupported_value on reasoning.effort.

What is the expected behavior?

/review should use current runtime model/effort (or clamp to supported effort for the selected model).

Additional information

None.

Activity

  1. added
    bug
    CLI
    code-review
    on Feb 22, 2026
  2. hdcodedev commented on Feb 24, 2026

    @hdcodedev
    Contributor

    This issue has been successfully reproduced. I am performing final checks and testing.
    Once everything is complete, I will move PR #12630 to review.

  3. miaopan607 commented on May 23, 2026

    @miaopan607

    I reproduced this locally.

    /review appears to read stale config.model_reasoning_effort instead of the current thread’s effective runtime setting. So after changing effort via /model, normal turns use the new value but /review can still submit the old one.

    A likely fix is to make the review child turn inherit from the parent turn’s effective config / turn context, then apply review-only overrides on top.

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

    CLIbugcode-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions