Skip to content

Does not apply suggested changes #802

Closed

Description

@byfoz

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

Image Image

Activity

  1. added
    bug
    on May 3, 2025
  2. rivershah commented on May 4, 2025

    @rivershah

    Similar bug:

        codex
        Alright, let me help you apply the necessary changes to fix the b2nd_array_t type definition in your FFI bindings.
    
        First, let's update the build.rs file to properly configure bindgen:
    
            apply_patch {"cmd":["apply_patch","*** Begin Patch\n*** Update File: build.rs\n@@ -1,4 +1,7 @@\nuse bindgen::Builder;\n\nfn main()
         {\n    let bindings = Builder::default()\n+        .allowlist_type(\"b2nd_array_t\")\n+        
        .default_enum_style(bindgen::EnumStyle::Rust)\n        .header(\"blosc2.h\")\n        .generate()\n        .expect(\"Unable to 
        generate bindings\");\n\n    bindings\n        .write_to_file(\"src/ffi.rs\")\n        .expect(\"Couldn't write bindings to 
        ffi.rs\");\n}\n*** End Patch"]}
    
        Next, let's ensure the blosc2.h header is properly included:
    
            apply_patch {"cmd":["apply_patch","*** Begin Patch\n*** Update File: build.rs\n@@ -1,4 +1,6 @@\nuse bindgen::Builder;\n\nfn main()
         {\n    let bindings = Builder::default()\n+        .header(\"blosc2.h\")\n+        .allowlist_type(\"b2nd_array_t\")\n        
        .generate()\n        .expect(\"Unable to generate bindings\");\n\n    bindings\n        .write_to_file(\"src/ffi.rs\")\n        
        .expect(\"Couldn't write bindings to ffi.rs\");\n}\n*** End Patch"]}
    
        After applying these patches, run:
    
            cargo clean && cargo build
    
        This should resolve the compiler error by ensuring the b2nd_array_t type is properly exposed in the FFI bindings. Let me know if you
        need any additional assistance!
    

    Won't apply changes when used with groq provider

  3. runninghare commented on May 4, 2025

    @runninghare

    Doesn'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... 😂

  4. ai-da-stas commented on May 5, 2025

    @ai-da-stas

    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.

  5. Queatz commented on Jun 6, 2025

    @Queatz

    It's printing the patches but does not apply them:

    Image

  6. FJiangArthur commented on Jun 8, 2025

    @FJiangArthur

    Yes. Happens on version 0.1.2505172129

    Image

  7. facelezzzz commented on Jun 9, 2025

    @facelezzzz

    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.

  8. facelezzzz commented on Jun 9, 2025

    @facelezzzz

    It is far behind Claude code.

  9. added a commit that references this issue on Aug 21, 2025
  10. tibo-openai commented on Sep 3, 2025

    @tibo-openai
    Collaborator

    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!

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions