Diff view shows a lot of line ending changes

Open 💬 2 comments Opened Jan 18, 2026 by sator-imaging
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.87.0

What subscription do you have?

Plus

Which model were you using?

_No response_

What platform is your computer?

_No response_

What terminal emulator and version are you using (if applicable)?

_No response_

What issue are you seeing?

<img width="385" height="207" alt="Image" src="https://github.com/user-attachments/assets/833540d7-5a7d-4459-9087-51edab9986c9" />

This makes it hard to use Codex in conjunction with existing tools.

What steps can reproduce the bug?

  • Create a file with CRLF line endings
  • Ask codex to modify it

What is the expected behavior?

Ignores line endings in diff view, or introduce a new option to ignore CRLF vs LF changes.

Additional information

_No response_

View original on GitHub ↗

2 Comments

etraut-openai contributor · 7 months ago

Which platform are you on? Are you using Windows? If so, are you running Codex in WSL or natively?

Are you using the Codex CLI or IDE Extension to view diffs? If it's the IDE extension, which version are you using?

Do you typically use CRLF or LF line endings when working with code files locally?

sator-imaging · 7 months ago

Using Codex on WSL in Windows Terminal by running npm i -g ...; codex in WSL terminal (bash).
The line endings may change by the tool. Some tool uses CRLF, and some tool uses LF (git is configured to force LF).