[BUG] Built-in edit/patch actions fail with gpt-5.4 (xhigh), but work with gpt-5.3-codex (xhigh)
Open 💬 2 comments Opened Mar 6, 2026 by jaried
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
**What's Wrong?
When running Codex CLI with model gpt-5.4 and reasoning effort xhigh, built-in CLI edit/patch actions are unreliable in real tasks. The same workflow succeeds after switching the model to gpt-5.3-codex with the same xhigh reasoning effort.
**What Should Happen?
Built-in edit/patch actions should behave consistently and reliably with gpt-5.4 (xhigh), matching the behavior observed with gpt-5.3-codex (xhigh).
Steps to Reproduce
- Start Codex CLI 0.111.0 on Windows using PowerShell 7.
- Configure model to gpt-5.4 and reasoning effort to xhigh.
- Run an editing task that requires CLI built-in edit/patch actions.
- Observe unstable or failed edit/patch behavior.
- Switch model to gpt-5.3-codex with the same xhigh reasoning effort and rerun the same task.
- Observe that the built-in edit/patch flow works normally.
Environment
- Codex CLI version: 0.111.0
- Model (problematic): gpt-5.4
- Model (works): gpt-5.3-codex
- Reasoning effort: xhigh
- OS: Windows 10 (10.0.19045)
- Shell: PowerShell 7
Additional Information
- Submission is sent via local GH proxy as requested (http://127.0.0.1:3213).
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I figured out why it is the case. Codex pulls parameters/tools for models from a model configuration file. When you have a ChatGPT subscription, it fetches that metadata from the server. Without a ChatGPT sub, it uses the json that's bundled with Codex itself.
The big problem: when a new model comes out, Codex updates it on their ChatGPT backend so if you have a subscription, Codex will fetch the updated model list and all works fine.
But, if you're using a proxy or a custom API key, this will not work properly for newer models, because, if there's no "gpt-5.4" entry in the bundled json, Codex falls back to a very pessimistic generic config for the model that doesn't let it use good tools.
Now, Codex does have GPT 5.4 in the repo, but it wasn't released with Codex 0.111, so you have to wait for the next release.
The solution right now is one of these:
/modelsyou see the new gpt-5.4, then exit, change the config back to your older setup with a custom proxy/API key. Then you should edit the config to add this:model_catalog_json = "/Users/dian/.codex/models_cache.json". This is needed because the normal cache TTL is 5 minutes.Codex' own explanation: