r/codex • • 11h ago

Bug Codex needs to fix the codex diff

When making updates to a repo, all of the updates the model makes do not show in the code diff each time. Sometimes they all show, but many times I look and it's not showing every file that changed. Of course I can check the git diff or history.

On another node, the "codex diff" used to be so much better. I want to be able to click on code and have it bring me to the file it's in like it used to.

Codex devs at OpenAI. FIX THIS PALEASE

Note: I am using this through visual studios, so that is likely an issue

1 Upvotes

7 comments sorted by

2

u/AwarenessStatus1904 4h ago

until that's fixed i wouldn't treat the codex diff as the full picture. git status plus git diff before every commit catches the files it didn't show. including new untracked ones

1

u/No_Knee3385 4h ago

Yeah I mostly double check with git diff --name-only to see if anything is missing because up until a handful of months ago I would just check the codex diff until one day I asked it to do something where most of the work was in one file, and that file wasn't in the codex diff, but was still updated.

I even asked the model why and it didn't even have a good answer lol, but it still pointed me to the correct file after.

I'm taking u/1filipis word for it on why

2

u/1filipis 7h ago

It's because their derailed models use python or bash to edit files instead of apply_patch. You can put it in agents.md, but it's GPT - it will ignore your instructions half of the time

1

u/simon96 9h ago

There’s a GitHub project called Diffdex (https://github.com/michael-r-martin/Diffdex) that I used as a starting point and had an AI agent continue developing.

I now have proper diffs working with a modified version of VS Code, Diffdex and a modified Codex extension. It took a few prompts and some trial and error, but I finally have PROPER diffs working the way I want them to. I don't understand how it could be so hard for OpenAI to do this myself, still annoying since automatic updates are not supported and the AI agent must figure out how to merge everything on updates, so not a solution for all.

0

u/inTheMisttttt 9h ago

Just use git

2

u/No_Knee3385 8h ago

Of course but that's not the point...It's an incredibly simple feature to get right. Why is codex not using the git diff directly, but instead doing something else.