codex - 💡(How to fix) Fix Review command doesn't honor custom profiles [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17533Fetched 2026-04-13 05:38:55
View on GitHub
Comments
3
Participants
3
Timeline
11
Reactions
0
Author
Timeline (top)
labeled ×5commented ×3mentioned ×1subscribed ×1

Code Example

[profiles.20b]
model_provider = "local"
model = "gpt-oss:20b"
RAW_BUFFERClick to expand / collapse

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

extent analysis

TL;DR

The issue might be resolved by ensuring the codex command is correctly configured to use the local model provider and the 20b profile.

Guidance

  • Verify that the 20b profile is correctly configured in the Codex CLI configuration file, checking for any typos or incorrect settings.
  • Check if the gpt-oss:20b model is properly installed and accessible on the local machine, as the model_provider is set to "local".
  • Run the command with increased verbosity or debugging options, if available, to gather more information about why the fallback to the OpenAI hosted model occurs.
  • Confirm that the codex command is using the expected configuration file and profile by checking the command's documentation or help output.

Example

No code snippet can be provided without more context about the Codex CLI's configuration file structure or the exact command-line options available.

Notes

The solution assumes that the 20b profile is correctly defined and the local model is properly set up. If the issue persists, additional debugging or configuration checks may be necessary.

Recommendation

Apply workaround: Verify the configuration and model setup as suggested, to ensure the codex command uses the local model provider correctly. This approach is chosen because the issue seems related to configuration or model availability rather than a version-specific bug that would require an upgrade.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING