codex icon indicating copy to clipboard operation
codex copied to clipboard

[Codex Extension] The "Codex Diff" window/viewer doesn't show the diff changes made by Codex in VS Code

Open kamenppavlov opened this issue 1 month ago • 51 comments

What version of the VS Code extension are you using?

Version 0.4.43

What subscription do you have?

Plus

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

The ‘Codex Diff’ window that displays the changes made by the Codex Extension cannot be expanded to view the actual diff.

What steps can reproduce the bug?

Ask Codex to change a file and click the "View All Changes" button in the Codex chat. You will note that attempting to expand the changed files to see the differences will do nothing.

Image

What is the expected behavior?

You should be able to see the differences made by Codex in the "Codex Diff" window (tab).

Additional information

No response

kamenppavlov avatar Nov 17 '25 13:11 kamenppavlov

The same issue does not display differences

alixiaodi avatar Nov 17 '25 14:11 alixiaodi

The code rollback did not respond

alixiaodi avatar Nov 17 '25 14:11 alixiaodi

Does this happen to all of your diffs or just this one? If you find one that fails, could you run a git diff and attach the diff here? We recently updated our git parser and I'd like to get to the bottom of any regressions it might have.

gpeal avatar Nov 17 '25 17:11 gpeal

From time to time, for example after modifying five files, two of them show as modified, but when I click to view the diff, nothing happens. I’ve already rolled Codex back to last week’s version, and after testing it, it works again.

alixiaodi avatar Nov 18 '25 01:11 alixiaodi

From time to time, for example after modifying five files, two of them show as modified, but when I click to view the diff, nothing happens. I’ve already rolled Codex back to last week’s version, and after testing it, it works again.

Most of the files modified during the conversation now appear unchanged, so I’ve tested this on multiple devices. I don’t think you’ve fully tested the new version — the previous version had similar issues as well. Are you expecting users to help you test it?

alixiaodi avatar Nov 18 '25 01:11 alixiaodi

Image I'm experiencing the same issue—the diff isn't displaying.

MidFlowers-1337 avatar Nov 18 '25 02:11 MidFlowers-1337

This is quite perplexing—I can't figure out where codex make the changes unless I open Git to check.

MidFlowers-1337 avatar Nov 18 '25 02:11 MidFlowers-1337

can you use git to generate a patch (of the diff that wont render) and upload here?

amadeus avatar Nov 18 '25 02:11 amadeus

codex-diff.patch

你能用 git 生成一个无法渲染的差别补丁并上传到这里吗? This is a partial change.

MidFlowers-1337 avatar Nov 18 '25 03:11 MidFlowers-1337

i have the same issue, the Codex Diff not showing any changes

septiandi71 avatar Nov 18 '25 03:11 septiandi71

I was exploring what could be done with the extension, so I asked it to do a stupid change to see how it would display the diff output. The file was XML, and it changed a "true" to "false" for option3

<options option1="true" option2="false" option3="true"> <option name="one"> <appliesTo> <category>BLABLA</category> </appliesTo> </option> </options>

Ultimately, it displays some changes and doesn't for others.

kamenppavlov avatar Nov 18 '25 06:11 kamenppavlov

Diff view in codex extension is too hard to use... Claude code and roocode call the diff view inside vscode, and allow partially accept changes. That is more efficient!

HUJIYONG avatar Nov 18 '25 09:11 HUJIYONG

I have the same issue, no changes shown, clicking expand on an individual change in the Codex Diff window does nothing. Happens for all file changes made so far.

hayhurst-zz avatar Nov 18 '25 12:11 hayhurst-zz

+1 Had this same problem since last week

Saterz avatar Nov 18 '25 16:11 Saterz

+1 same problem

mysterion007 avatar Nov 18 '25 18:11 mysterion007

I have the same issue, no changes shown, clicking expand on an individual change in the Codex Diff window does nothing. Happens for all file changes made so far.

Sometimes if there is a single file changed the codex diff window opens with the changes visible

hayhurst-zz avatar Nov 18 '25 18:11 hayhurst-zz

yes me too. sometime it doesn't show anything even after clicking the expand button

crimpproduction avatar Nov 19 '25 03:11 crimpproduction

Add 1 more user to the list of those who have this problem :) Its expand button doesn't work on Codex Diff and even in the chat section, which previously would show, and when it asks for permission to allow the changes (I am using the chat mode), so basically I cannot see what it changes, which is essential for me. Using git diff is not the best, because I don't commit per prompt, and the previous changes will be shown in there as well.

AliMozdian avatar Nov 19 '25 04:11 AliMozdian

Thanks for the reports. We have a new version (0.4.44/0.5.44 pre-release) rolling out tomorrow that has a potential fix for this. Once it does, coud you let me know if you're still seeing this?

If you are, could somebody attach a git diff that we can use to reproduce the issue with?

gpeal avatar Nov 19 '25 05:11 gpeal

same issue here guys:

Image

kazakhokage avatar Nov 19 '25 11:11 kazakhokage

+1 same issue

Image

tmandanici avatar Nov 19 '25 12:11 tmandanici

@kazakhokage @tmandanici We're releasing an update with support for the new gpt-5.1-codex-max model today and it includes a potential fix for this. If you update and still see this, please capture and post a git diff so that I can reproduce it.

gpeal avatar Nov 19 '25 18:11 gpeal

@gpeal

Still an issue after the release with gpt-5.1-codex-max...

Image Image

Image

Here is the sample git diff

from codex copy button(with paths redacted, shouldn't change the behavior)

diff --git a/c:\redacted/Startup.cs b/c:\redacted/Startup.cs
--- a/c:\redacted/Startup.cs
+++ b/c:\redacted/Startup.cs
@@ -86,6 +86,10 @@
             // Enable SoapCore; this middleware provides translation services from WCF/SOAP to Asp.net
-            services.AddSoapCore();
-
-            services.AddMemoryCache();
-            services.AddSingleton<IDistributedCache>(_ => new FileSystemDistributedCache(CacheDatabasePath));
+            services.AddSoapCore();
+
+            services.AddMemoryCache(options =>
+            {
+                // Limit in bytes; ensures entries must declare their size.
+                options.SizeLimit = 1L * 1024 * 1024 * 1024; // 1 GB
+            });
+            services.AddSingleton<IDistributedCache>(_ => new FileSystemDistributedCache(CacheDatabasePath));

Snshadow avatar Nov 20 '25 00:11 Snshadow

I have already used your latest pre release version, and it seems that I still have this issue. Can we modify the preview of the code differences to something similar to cursor, which feels better? Friends can leave a message to discuss whether this is good or not

alixiaodi avatar Nov 20 '25 05:11 alixiaodi

I have already used your latest pre release version, and it seems that I still have this issue. Can we modify the preview of the code differences to something similar to cursor, which feels better? Friends can leave a message to discuss whether this is good or not

I think if it could be done like this, I could just give up on cursor

alixiaodi avatar Nov 20 '25 05:11 alixiaodi

I'm curious if this is a windows-only issue. Please 👍 this message if you are experiencing this on Windows or 👎 if you have seen this on mac or linux.

If somebody could attach a raw text diff file to ensure it properly captures things like CRLF line endings, that would be great.

gpeal avatar Nov 20 '25 05:11 gpeal

I'm curious if this is a windows-only issue. Please 👍 this message if you are experiencing this on Windows or 👎 if you have seen this on mac or linux.

If somebody could attach a raw text diff file to ensure it properly captures things like CRLF line endings, that would be great.

👍

alixiaodi avatar Nov 20 '25 05:11 alixiaodi

Image Image

But when it sometimes work, I can see that the diff uses CRLF line endings.

Image

sample-diff.txt

It seems like this issue comes from somewhere else even if it's an Windows specific issue..

Snshadow avatar Nov 20 '25 06:11 Snshadow

@gpeal I still have the same issue, even with gpt-5.1-codex-max from the latest release. Nothing has changed.

Image Image

tmandanici avatar Nov 20 '25 08:11 tmandanici

Now i don't even see the indicator for lines changed anymore :(

wiegell avatar Nov 20 '25 10:11 wiegell