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

Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Jul 28, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] 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

Claude Pro Plan

Operating System

Windows

Terminal/Shell

PyCharm terminal

Additional Information

Image of it looking broken:

<img width="1920" height="1032" alt="Image" src="https://github.com/user-attachments/assets/9deb7884-c84f-406c-b88c-3dde9de87306" />

View original on GitHub ↗