Skip to content

[BUG] TUI visual artifacts during diff view in PyCharm integrated terminal #81885

Description

@youssefahmed2017

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?

While Claude Code was displaying a diff/edit view inside PyCharm's integrated terminal, the UI showed several visual artifacts simultaneously:

  • A large I-beam cursor floating mid-screen, overlapping the code content
  • Red diff highlighting bleeding incorrectly across multiple lines
  • General visual corruption in the diff area during an active agentic edit

Environment

Field Value
Claude Code version 2.1.220 (Claude Code)
OS Windows 11 24H2
Terminal PyCharm built-in integrated terminal
Shell [PowerShell 7.6.4

What Should Happen?

Clean diff rendering with no overlapping cursor or bleeding highlights.

Actual Behavior

See attached screenshot.

Related Issues

Similar to #20627 and #22076, but those are specific to Windows Terminal / cmd.exe. This occurs in PyCharm's terminal specifically during diff rendering.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code inside PyCharm's integrated terminal
  2. Let Claude Code enter auto mode and begin editing a file
  3. Observe the diff view — artifacts appear in the highlighted region
    NOTE: It didn't happen every time I did with these Steps. So it only happened ONE TIME. I still don't know how it happened tho

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.220 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PyCharm terminal

Additional Information

Image of it looking broken:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions