claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Severe screen flickering in VS Code/Cursor integrated terminal on Windows

Open Samburskoy opened this issue 10 months ago • 4 comments

Description

Claude Code causes severe screen flickering (~2-3 times per second) when running in VS Code/Cursor integrated terminal on Windows. The flickering is so intense it can trigger discomfort even for users without photosensitivity issues.

Environment

  • OS: Windows 10/11
  • Terminal: VS Code / Cursor integrated terminal (xterm.js)
  • Shell: Git Bash, PowerShell (both have the issue)
  • Claude Code version: Latest

Steps to Reproduce

  1. Open VS Code or Cursor on Windows
  2. Open integrated terminal (Git Bash or PowerShell)
  3. Run claude and send any prompt
  4. Observe the screen flickering rapidly during response streaming

Expected Behavior

Smooth text streaming without full screen re-renders.

Actual Behavior

The entire terminal buffer flickers/re-renders on every streaming chunk, causing rapid screen flashing.

Workarounds Tested (None Worked)

  • terminal.integrated.gpuAcceleration: tried "on", "canvas", "off"
  • terminal.integrated.smoothScrolling: true
  • Different shells (Git Bash, PowerShell)
  • Various scrollback buffer sizes

Working Alternative

Running Claude Code in Windows Terminal (standalone app) works perfectly without flickering. This confirms the issue is specific to xterm.js renderer used in VS Code/Cursor.

Root Cause Hypothesis

Ink (React for CLI) appears to re-render the entire screen buffer on every streaming chunk instead of doing incremental updates. xterm.js handles this poorly compared to Windows Terminal's renderer.

Suggested Fix

  • Implement incremental/partial screen updates instead of full re-renders
  • Or provide a --no-animation / --reduced-motion flag
  • Or add a config option to disable animated streaming output

This significantly impacts usability for anyone using Claude Code within their IDE's integrated terminal.

Samburskoy avatar Jan 14 '26 05:01 Samburskoy

Update: Windows Terminal also flickers. The issue is in Claude Code's Ink renderer itself, not in any specific terminal emulator.

Samburskoy avatar Jan 14 '26 05:01 Samburskoy

I encountered the same problem.

kikkimo avatar Jan 14 '26 06:01 kikkimo

I also have the same issue, but no fixes worked.

helalifaker avatar Jan 14 '26 17:01 helalifaker

this has been an issue for months, i dont understand why the dev's dont fix this before fking making any more dumbass plugins

JaysTilted avatar Jan 17 '26 01:01 JaysTilted

Have the same issue

ranjit-parva avatar Feb 13 '26 03:02 ranjit-parva

Same issue in Termius - constantly rescrolls to all sorts of strange positions whilst working. It's quite obstructive to actually getting things done efficiently, as I can't see what the latest activity is without refocusing the console and pressing an arrow.

kavanagh21 avatar Mar 14 '26 22:03 kavanagh21

this needs to be fixed asap. very annoying

jaceyang97 avatar Mar 18 '26 14:03 jaceyang97

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] avatar Apr 16 '26 22:04 github-actions[bot]

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.

github-actions[bot] avatar Apr 26 '26 14:04 github-actions[bot]