Review command doesn't honor custom profiles

Open 💬 3 comments Opened Apr 12, 2026 by mhitza
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

0.120.0

What subscription do you have?

Free as in beer

Which model were you using?

_No response_

What platform is your computer?

Linux 6.8.0-107-generic x86_64 x86_64

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

Konsole 23.08.5

What issue are you seeing?

When codex invoked to review uncommitted changes with codex -p 20b review --uncommitted it ignores the profile and fallsback automatically to some OpenAI hosted model.

Snippet of my 20b profile

[profiles.20b]
model_provider = "local"
model = "gpt-oss:20b"

What steps can reproduce the bug?

See previous above.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #17503
  • #16719

Powered by Codex Action

etraut-openai contributor · 4 months ago

Have you tried setting review_model in your config?

mhitza · 4 months ago

@etraut-openai review_model doesn't allow me to specify a local model (?). It might be intended, and not a usecase you care about on your part, but it is in conflict with general codex cli usage help screen. codex [OPTIONS] <COMMAND> [ARGS] which reads to be like all options are available and adhered to.