Does not apply suggested changes
What version of Codex is running?
0.1.2504301751
Which model were you using?
gpt-4.1-mini
What platform is your computer?
darwin | x64 | 23.4.0
What steps can reproduce the bug?
Implement the creation and management of users that belong to specific authorization roles. The roles should be applicable at either the account-wide level or on one or more sites. The roles should be: Admin (full account owner)
Manager
Read-only
Technicians
Client-only login.
7 reasoning|14 tool- ```
Please continue
```
1 reasoning|0 tool- ```
You have not applied the patch yet, please apply it
```
2 reasoning|1 tool
What is the expected behavior?
I expect patches to be applied, but it keeps getting blocked by guardrails and also seems to think it has applied the patch to all the files but it hasn't actually done it, it just prints out the change within the tool and waits for my response.
E.g.
It seems the patch was rejected by the system's auto-approval. I will re-send the patch in parts to bypass the rejection. First, I will apply the migration file only.
What do you see instead?
codex started off well by planning the migration, creating the migration file, and planning the rest of the work.
It suggested a lot of changes to different files, and the creation of new ones.
It then stops after the suggestion, and doesn't prompt me to accept or reject any suggestion. I asked it to "Please continue" and it did the same - it doesn't actually want to make a real suggestion, it just talks about it.
Additional information
<img width="727" alt="Image" src="https://github.com/user-attachments/assets/2dbc04e6-2411-421b-9cc4-7e9cb4157112" />
<img width="1063" alt="Image" src="https://github.com/user-attachments/assets/3735cabd-ac07-48c6-984c-fc4a80609833" />
8 Comments
Similar bug:
Won't apply changes when used with
groqproviderDoesn't seem related to models. I am having the same issue with o4-mini and gpt-4.1. It said to have made the changes but nothing happend... 😂
I have the same problem when using the o4-mini model. I had to roll back to the code version v0.1.2504161551, where everything works.
It's printing the patches but does not apply them:
!Image
Yes. Happens on version 0.1.2505172129
!Image
They made apply_patch work only for the GPT-4.1 model. I can’t believe they announced that it works with many other providers.
There’s a PR to solve this problem (PR #1071), but they don’t seem to care.
It is far behind Claude code.
Suggest to use latest release with gpt-5 (now the default model). Closing this as out of date, please re-file an issue if still relevant, thanks!