Codex Diff fail to pin down the exact lines that are changed

Open 💬 2 comments Opened Apr 12, 2026 by TenofHearts

What version of the IDE extension are you using?

26.409.20454

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?

When codex is used to make some modifications, the Codex Diff is all messed up. Some lines are "changed" into the exact same line, causing the diff to be practically unreadable.
Example:

...
- line a unchanged
- line b unchanged
- line c unchanged
- line d old
- line e unchanged
+ line a unchanged
+ line b unchanged
+ line c unchanged
+ line d new
+ line e unchanged
...

What steps can reproduce the bug?

Just make codex edit some files and take a look at the codex diff.

What is the expected behavior?

Only the actual modified lines should appear in the diff view.
Running Example

...
line a
line b
line c
- line d old
+ line d new
line e
...

Additional information

_No response_

View original on GitHub ↗

2 Comments

AlaaMouch · 4 months ago

I'm seeing a similar thing on Codex CLI, v0.120.0; the diff does not accurately reflect the lines that got changed, requiring me to check either the file or the commit.

AccessViolationEnjoyer · 3 months ago

The diffs generated are atrocious. It frequently shows 10 lines removed and 11 lines added, when in fact just one line was added and there were no whitespace changes. It makes the Review button unusable. I have to generate the diff myself.