Instead of editing my files, it deleted them
Resolved 💬 5 comments Opened Apr 17, 2025 by thedanvail Closed Aug 7, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
I tried having it simply update some parameters from my logging classes and it just straight-up deleted them.
5 Comments
Which command and model were you using? And could you share a bit more information to make it easier to reproduce?
@tibo-openai gpt-4o-mini, and the prompt was
There are two files I need you to update: one under include/common/Log.h and one under src/common/Log.cpp. Check every function for its parameters, and if the parameter is aThen I told it to proceed with the changes and then the files were deleted. I luckily had them push to my main branch, but on the branchpointer, check if it is prepended with "ap". If it is not prepended with "ap", prepend that pointer with "ap".
codexcreated, they were completely gone.Thank you for the feedback. Please try again on the latest version of Codex CLI. If the issue persists, let us know.
<img width="1914" height="198" alt="Image" src="https://github.com/user-attachments/assets/b13562c2-2c53-4446-930e-7a3a2ab5e6a0" />
Similarly, when I asked him to modify a file, he didn't modify it like Claude Code would; instead, he deleted the file first and then added it back. @tibo-openai I am using the latest version.
<img width="769" height="275" alt="Image" src="https://github.com/user-attachments/assets/d4271310-43f5-4502-b1c3-b9e408c2ade8" />
<img width="568" height="171" alt="Image" src="https://github.com/user-attachments/assets/ef642c94-bdd0-48b3-babd-e1fd600a47c9" />