codex icon indicating copy to clipboard operation
codex copied to clipboard

Allow PRs with binary files

Open FreddyE1982 opened this issue 3 months ago • 10 comments

Please allow codex web to create PRs that include binary files. I just had it work successfully on a task for 40 minutes and can not merge the PR because it accidentely created a small unneeded binary file!

FreddyE1982 avatar Oct 07 '25 06:10 FreddyE1982

Same here, or at least, let us delete the binary and create PR. It is so annoying to loose all work due to this error.

alex-santafe avatar Oct 11 '25 05:10 alex-santafe

same here.

sayedalimousawi avatar Oct 11 '25 11:10 sayedalimousawi

I was just getting into Codex and then found out about this limitation. So frustrating! Does Claude Code have this problem? Might be a reason to switch.

selfinterest avatar Oct 11 '25 22:10 selfinterest

yes this needs to be fixed please

Zejzz avatar Oct 13 '25 08:10 Zejzz

It has been like this since launch - makes it not really usable for some workflows.

Workaround is .gitignore common binary files.

shanelindsay avatar Oct 13 '25 09:10 shanelindsay

same here. it needs to be fixed i am having issues creating a PR!

Nicholas-Tritsaris avatar Nov 14 '25 02:11 Nicholas-Tritsaris

Yeah it's impossible to e.g. create a bun lockfile (bun.lockb) or create a PR for a codex change that inclues such a change this way -- not sure I understand the intent here -- shouldnt you be able to "allowlist" such changes at least (e.g. bun.lockb files are ok to commit)?

z0d14c avatar Nov 14 '25 23:11 z0d14c

Hit the same issue, I think it is pretty common use case and surprised that it is not fixed yet.

yanguowen avatar Nov 18 '25 05:11 yanguowen

This is the same for me. You have to exclude everytime the binary files or find a workaround with those files ... It's literally painful.

MotherSphere avatar Nov 23 '25 15:11 MotherSphere

Same for me - Gradle wrapper jar is automatically added to the build and cannot be committed to the repo. Just add the possibility to exclude specific files from the PR to avoid messing up with workarounds.

vp-mazekine avatar Dec 04 '25 14:12 vp-mazekine

Partial workaround is to use "copy git apply". The below post says to paste to a .patch file, then run git apply ThatFile.patch, but I think what's copied is the commands to run themselves, with data included.

https://community.openai.com/t/codex-started-failing-to-create-new-pr/1264529/40

jmegner avatar Dec 11 '25 03:12 jmegner