What version of Codex CLI is running?
codex-cli 0.128.0
What subscription do you have?
Pro
Which model were you using?
GPT 5.5
What platform is your computer?
No response
What terminal emulator and version are you using (if applicable)?
Terminal.app
What issue are you seeing?
Whatever patch tool is being used by Codex when rewriting files has a habit of adding or removing blank lines at the ends of files, seemingly at random. I've gotten to the point where my prompts and AGENTS files repeatedly say things like "double check that you don't modify blank lines at the ends of files". I suspect this is a bug in the tool the agent is using and not in the main part of the agent itself, but that's a guess.
What steps can reproduce the bug?
Modify a lot of files, look at the diffs, notice that blank lines get removed or sometimes added to the ends of files without much rhyme or reason.
What is the expected behavior?
No response
Additional information
No response
What version of Codex CLI is running?
codex-cli 0.128.0
What subscription do you have?
Pro
Which model were you using?
GPT 5.5
What platform is your computer?
No response
What terminal emulator and version are you using (if applicable)?
Terminal.app
What issue are you seeing?
Whatever patch tool is being used by Codex when rewriting files has a habit of adding or removing blank lines at the ends of files, seemingly at random. I've gotten to the point where my prompts and AGENTS files repeatedly say things like "double check that you don't modify blank lines at the ends of files". I suspect this is a bug in the tool the agent is using and not in the main part of the agent itself, but that's a guess.
What steps can reproduce the bug?
Modify a lot of files, look at the diffs, notice that blank lines get removed or sometimes added to the ends of files without much rhyme or reason.
What is the expected behavior?
No response
Additional information
No response