[Bug] ANSI color drift in Windows output since v2.1.14

Resolved 💬 3 comments Opened Feb 18, 2026 by calilafollett-rm Closed Feb 18, 2026

Bug Description
The ANSI color drift bug (#17314, #14720) on Windows has had a community-identified root cause and a 3-byte fix for over two weeks now, but no official patch has shipped.

This affects every native Windows install since v2.1.14. Random colored text fragments appear in normal prose output, getting progressively worse with longer responses. It's cosmetic but highly visible and erodes confidence — our internal users are reporting it as "Claude is broken."

The root cause (identified by @WargameGPT in #14720) is a gated condition in the Ink word-wrap renderer (IP5/bh0 function). The whitespace position correction block only runs in wrap-trim mode but needs to run in all wrap modes. The fix is removing z&& from if(z&&_.length>0) — literally 3 bytes.

The only community workaround involves hex-patching the Bun-compiled binary, which invalidates Authenticode signatures, breaks auto-update integrity checks, and is not something we can responsibly distribute to our team.

Can this please get prioritized? The diagnosis is complete, the fix is trivial, and it's been sitting for two weeks affecting every Windows user.

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.45
  • Feedback ID: 569c84c1-ed0e-48a5-9362-bcda5e9b5f6a

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗