Skip to content

[BUG] Persistent UI rendering glitches during chat output and text editing #20627

Description

@lutfiidham

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

There is a persistent rendering issue in the Claude Code interface when running on Windows Terminal. The UI fails to render text correctly, resulting in garbled output, overlapping text, and visual artifacts.

This glitch occurs not only when editing input (typing "/" and using backspace) but also actively during the chat rendering process when Claude generates responses. The /clear command is also unable to properly wipe the screen or fix these artifacts.

What Should Happen?

The terminal should render text cleanly without visual corruption, both during chat streaming and user input. The screen should update correctly, and the /clear command should wipe all previous content, restoring a clean prompt.

Error Messages/Logs

Steps to Reproduce

Scenario A (Chat Rendering):
Initiate a conversation or run a command that triggers a long response from Claude.
Watch the terminal as Claude renders the text stream.
Observe that the display becomes corrupted or fails to refresh cleanly, leaving glitched artifacts.

Image

Scenario B (Text Input):
Type the "/" character to open the command menu.
Press Backspace repeatedly to delete the character.
Observe the visual corruption on the current line.

Image

Scenario C (Clear Command):
When the screen is in a glitched state, type /clear.
Observe that the terminal does not clear completely.

Image

Claude Model

Other

Is this a regression?

Yes, this worked in a previous version

Last Working Version

npm version

Claude Code Version

v2.1.19

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions