Changes/Diffs are not accurate

Resolved 💬 5 comments Opened Sep 8, 2025 by iamhectorlopez Closed Mar 29, 2026
💡 Likely answer: A maintainer (aibrahim-oai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

Cursor IDE extension

Which model were you using?

gpt5

What platform is your computer?

windows

What is the expected behavior?

expected behavior is that it should leave untouched rowes that are not being modified. and only mark as red removed and green added.

What do you see instead?

rowes maintained, are being marked as green even though they arlready existed.

Additional information

_No response_

View original on GitHub ↗

5 Comments

aibrahim-oai contributor · 11 months ago

The screenshot is from the IDE extension while you mention you use the CLI. Can you provide more information?

techjoec · 11 months ago

It seems related to how it samples and uses sed and such to find the 'chunks', I have noticed the same.

iamhectorlopez · 11 months ago

@aibrahim-oai sorry for the confusion, indeed is with an IDE extension, i have updated the issue to reflect that

iamhectorlopez · 10 months ago

This issue persists, and sometimes it can get to the point where it deletes the entire file and rewrites it. I’ve experienced this same behavior in different situations as well.

also would be great if this could get some attention: https://github.com/openai/codex/issues/3567

<img width="249" height="69" alt="Image" src="https://github.com/user-attachments/assets/09b9f41d-c921-41e1-a4e9-937b222cadd4" />

etraut-openai contributor · 5 months ago

This bug report hasn't received any upvotes or additional posts in three months. Closing.