Text rendering bug in version 2.0.73 on Windows
Status Fixed / completed
Reported on v2.0.73
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 10 comments · opened Dec 19, 2025 · closed Dec 19, 2025
Description
Text output is fragmented/truncated in version 2.0.73 on Windows. The text appears broken with large empty spaces and only partial words showing.
Environment
- OS: Windows 10/11
- Terminal: Both cmd.exe and Windows Terminal affected
- Claude Code version: 2.0.73
Steps to reproduce
- Install Claude Code 2.0.73 on Windows
- Start a session with
claude - Observe that text responses are fragmented and difficult to read
Screenshots
The text appears scattered across the screen with missing portions, making responses unreadable.
Workaround
Downgrading to version 2.0.72 resolves the issue:
npm install -g @anthropic-ai/claude-code@2.0.72
Expected behavior
Text should render correctly and be fully readable.
10 Comments
Same here. Not just malformed, but whole sections of the output are missing and not rendered, but there is black space with no content where there should be content.
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Additional Investigation
After further investigation, we can confirm:
Root Cause
What We Checked
.claude.jsonconfiguration - no encoding settings available.claude/settings.json- no encoding settings availableConfirmed Fix
``
``npm install -g @anthropic-ai/claude-code@2.0.72
Possible Cause
Looking at the 2.0.73 changelog:
This change to text rendering may have introduced the bug.
Environment
it's full of these reports already, but just downgrade to previous version
Source Code Analysis
I analyzed the differences between cli.js in v2.0.72 and v2.0.73 (~20KB difference).
New Code in 2.0.73 for Clickable Images
Parser function
QQ7- Splits text when it finds[Image #N]pattern:Renderer function
okA- Renders mixed text/image segments:Link component
akA- Creates clickable ink-link:Likely Root Cause
The
Lv()function checks terminal link support:Problem: On Windows,
Lv()returnstrue(because stdout exists), but theink-linkelement doesn't render correctly in Windows terminals, causing the text fragmentation/corruption.Suggested Fix
Either:
Lv()to properly detect Windows terminal capabilitiesRoot Cause Analysis
I've done a detailed analysis comparing the minified code between 2.0.72 (working) and 2.0.73 (buggy) and found the root cause.
What Changed in 2.0.73
Version 2.0.73 introduced clickable \ links using OSC 8 hyperlink escape sequences. The key new functions are:
The Bug
The ANSI stripping regex in \ does not properly match OSC 8 hyperlink sequences.
Test showing the issue:
\
This causes:
Proposed Fix
Add an OSC 8 specific pattern to the ANSI regex:
\
Alternative quick fix - explicitly disable hyperlinks on Windows in \:
\
Files Involved
The relevant functions in cli.js (minified names may vary):
Root Cause Analysis
I've done a detailed analysis comparing the minified code between 2.0.72 (working) and 2.0.73 (buggy) and found the root cause.
What Changed in 2.0.73
Version 2.0.73 introduced clickable
[Image #N]links using OSC 8 hyperlink escape sequences. The key new code:ESC]8;;URL BEL TEXT ESC]8;; BELThe Bug
The ANSI stripping regex does not properly match OSC 8 hyperlink sequences.
When text contains OSC 8 hyperlinks, the width calculation includes the escape sequence characters (which should be invisible). This causes:
Example: A string like
[Image #1](11 chars visible) with OSC 8 wrapping is actually 38+ chars. The layout engine allocates space for 38 chars but only 11 are visible, creating gaps.Proposed Fixes
Option 1 (Recommended): Add OSC 8 pattern to the ANSI stripping regex used by the strip-ansi package:
Option 2 (Quick fix): Explicitly disable hyperlinks on Windows in the terminal link support check:
This prevents OSC 8 sequences from being generated on Windows where they cause issues.
Files Involved (in minified cli.js)
Verification
I confirmed the regex issue with this test:
It is a duplicate of #14554
I'm having the same issue, so far using just regular windows command prompt instead of terminal is working for me (cmd.exe)
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.