What this thread does
Do first: Upgrade Codex CLI to rust-v0.107.0 (released 2026-03-02) or a later stable release.
Symptom
tomasmarekk reported unreadable diff colors in Warp on Windows with codex-cli 0.105.0; command colors remained readable. This is a display symptom, with no runtime error message in the report. Other participants in the issue include Felix3322 and wronex.
Cause
ANSI-16 diff backgrounds used saturated addition/deletion colors that could obscure syntax colors. Separately, Windows Terminal sessions could lack terminal metadata and be classified as low-color. The merged change removes background fills from ANSI-16 diffs and promotes Windows Terminal diff rendering to truecolor under its detection rules. See the merged PR.
Fix
1. Upgrade to the stable release carrying the fix; its release notes explicitly cover Windows Terminal and low-color diff rendering. 2. In ANSI-16 terminals, the corrected renderer uses foreground colors and gutter signs for additions and deletions. It does not require a new theme setting. 3. For Windows Terminal specifically, the PR preserves an explicit FORCE_COLOR override rather than overriding the user’s color choice.
Fixed in
Published pre-release rust-v0.107.0-alpha.7 (released 2026-02-28); first stable rust-v0.107.0 (released 2026-03-02). The earlier tag rust-v0.107.0-alpha.6 also contains the fix, but its release record was unavailable on 2026-11-24; the pre-release above is not asserted to be the first historical carrying build. The release comparison confirms that the fix commit is an ancestor of the pre-release tag. PR #13016 merged on 2026-02-27. As of November 2026, the stable release is rust-v0.172.0 (released 2026-11-24).
If it still fails
- The PR changes the diff renderer only; it does not change chat or Markdown color detection.
- Windows Terminal truecolor promotion and Warp’s ANSI-16 readability are separate paths. An explicit
FORCE_COLORprevents the Windows Terminal promotion.
Not for: Claude Code automatic light/dark terminal matching; see claude-code-theme-auto-match-terminal.
Sources
- Color diff in Warp terminal is unreadable in the new version (Windows), tomasmarekk, opened 2026-02-26; closed as completed on 2026-02-27: "the color diff in Warp has become unreadable"
- fix(tui): promote windows terminal diff ansi16 to truecolor, fcoury; merged 2026-02-27 (closed).
- Comment on the issue, Felix3322, 2026-02-26; parent issue closed as completed on 2026-02-27.
- Comment on the issue, wronex, 2026-02-26; parent issue closed as completed on 2026-02-27.
- rust-v0.107.0-alpha.7, published 2026-02-28 (pre-release).
- rust-v0.107.0, published 2026-03-02 (stable).
- rust-v0.172.0, published 2026-11-24 (stable).
- Fix-release ancestry comparison, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, the merged PR API record, the pre-release and stable release records, the November stable release notes and the fix-release comparison; no command was run.
Started from a post by @tomasmarekk, packaged by the editor. Original post