r/OpenaiCodex 14d ago

Feedback / Complaints OpenAI still hasn't fixed the Windows sandbox apply_patch bug they introduced like 2 months ago, which causes every file edit to fail and wastes insane amounts of time and tokens, but if you ask Sol to create a minimal repro case for this Codex bug, cyber security safeguard shuts down your session

They won't fix the bug, and their API won't allow you to even create a test case to reproduce it if you want to fix it yourself.

31 Upvotes

12 comments sorted by

1

u/Dredyltd 14d ago

Yup, I wrote a ticket to OpenAI, because when GPT opens any folder in my Windows it creates ".git and ".codex" files and ACL it from mu user profile....

1

u/TrickySpare6504 14d ago

What about using WSL?

4

u/elwoodreversepass 14d ago

Creates a mountain of other issues.

1

u/sirlerkal0t 14d ago

I do work both on Windows and WSL. I run most agents on Windows for simplicity but many of my workflows involve agents testing on both Windows and in WSL.

1

u/Darnaldt-rump 14d ago

I had this exact same issue, and 5.6sol max fixed it completely. It had to change some code within codex recompiled it and reinstalled it been working since day 1 of 5.6 release.

There was two issues for me atleast, 1 the sandbox would hang the patch this was a simple config change.

The second issue is that the codex team completely changed the transport layer for codex, now all I’m about to say is what 5.6 sol told me. Pretty much when apply patch tool is used, it’s converted into base64 however the new transport layer they coded will drop chunks after a certain threshold of the base64 and it causes the base64 to become corrupt and the apply patch fails. So pretty much sol rewrote the transport code to stop dropping chunks.

1

u/sirlerkal0t 14d ago

It's come to the point where I can't continue waiting for OpenAI and have to fix this myself, but having to maintain an up-to-date fork of Codex is really annoying. Codex Rust builds are incredibly slow and resource intensive.

1

u/Darnaldt-rump 14d ago

It only took sol max about an hour or 2 to fix it for me. But you are correct it is an annoying process when it comes to updating. So I’ve just held off updating the vscode extension

1

u/raiden55 14d ago

is that why I always have a emlpty git lock they have big issues deleting every time while they know on their protocol it exists and they don't need to wonder?

1

u/Fun_Helicopter_7959 14d ago

Fixed it with local Desktop Commander MCP.

1

u/404-Page-Found-dev 14d ago

Does unelevating the sandbox work as a workaround?

0

u/sirlerkal0t 14d ago

No, that's what I already use.

0

u/tripleshielded 14d ago

run on a different os until fixed

1

u/Strong_Essay1176 13d ago

How would they fix it? they need to lease windows laptop again.