Diffs are corrupted in Windows Terminal with Powershell

Open 💬 0 comments Opened Feb 4, 2026 by rstahlvm

What version of Codex CLI is running?

0.95.0

What subscription do you have?

Team

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

Windows Terminal 1.23.20211.0 (PowerShell)

What issue are you seeing?

In diffs that are shown to the user, sometimes the text is jumbled or cut off. This applies to the user prompt ("Would you like to make the following edits") and the patch view (Ctrl+A), but not the previous log (Edited [file]). When switching back and forth between edit prompt and patch view (Ctrl-A, Q) you can sometimes see the correct text for a split-second.

<img width="1711" height="1438" alt="Image" src="https://github.com/user-attachments/assets/1b6c4c97-20a4-47b6-8b63-18b1f3e58f02" />

https://github.com/user-attachments/assets/f098c9e9-d466-4c91-8a65-dc59fe152eca

I encountered this bug since at least version 0.77.0 with no known good version.

What steps can reproduce the bug?

  • Open codex
  • Ask it to "propose a random file change to ..." (a reasonably complex text file)
  • If issue is not shown yet, ask it to "do a bigger multi-line, long-line change"

What is the expected behavior?

Text renders correctly in change prompt and patch view.

Additional information

_No response_

View original on GitHub ↗