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

[BUG] Bug Report: Performance Degradation (Frame Drops) During Code Editing in v2.0.50

Open cgmaniac87 opened this issue 1 month ago • 4 comments

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?

Environment

Claude CLI version: 2.0.50 (native installation) Operating System: Windows 11 + WSL2 (Ubuntu) Terminal: Windows Terminal / WSL bash Project Location: /mnt/d/ (Windows filesystem accessed via WSL)

Bug Description Starting from version 2.0.50, severe frame drops occur when Claude Code begins editing files. The issue appears as soon as the real-time diff counter is displayed below the input prompt (e.g., 1 file +4234 -4388). The lag is similar to frame drops in video games - the terminal becomes unresponsive and choppy during the entire code modification process.

What Should Happen?

Expected Behavior Code editing should be smooth without noticeable lag, as it was in version 2.0.49. Actual Behavior

Severe frame drops and terminal lag when editing files The lag persists throughout the entire code modification process Terminal becomes choppy and unresponsive

Workaround Downgrading to v2.0.49 completely resolves the issue:

rm ~/.local/bin/claude ln -s ~/.local/share/claude/versions/2.0.49 ~/.local/bin/claude


After rollback, code editing is smooth again with no performance issues.

### Additional Context

- The issue may be related to the new real-time diff display feature introduced in v2.0.50
- Problem is more pronounced on WSL2 with Windows filesystem (`/mnt/d/`), possibly due to cross-filesystem I/O overhead combined with the new diff tracking feature
- `claude doctor` output shows no errors

### Diagnostic Output

$ claude doctor Diagnostics └ Currently running: native (2.0.50) └ Path: /home/username/.local/bin/claude └ Config install method: native └ Auto-updates: default (true) └ Search: OK (bundled)

Error Messages/Logs


Steps to Reproduce

  1. Run Claude Code v2.0.50 in WSL2 environment
  2. Navigate to a project on Windows filesystem (/mnt/d/...)
  3. Request Claude to modify any code file
  4. Observe the diff counter appearing below the prompt (e.g., 1 file +4234 -4388)
  5. Notice severe lag/frame drops during the editing process

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

2.0.50

Claude Code Version

native (2.0.50)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

No response

cgmaniac87 avatar Nov 24 '25 07:11 cgmaniac87

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12155
  2. https://github.com/anthropics/claude-code/issues/12138
  3. https://github.com/anthropics/claude-code/issues/12205

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 24 '25 07:11 github-actions[bot]

2.0.50 is very buggy, causing lag and it seems to edit entire file instead of targeted edits. Multiple bugs were reported on this.

So the workaround is to rollback to 2.0.49

Steps:

  1. Windows Search for: Edit the System Environment variables -> Environment Variables -> New system variable -> name: DISABLE_AUTOUPDATER value: 1.

  2. npm install -g @anthropic-ai/[email protected]

Image

dmm-l-mediehus avatar Nov 24 '25 11:11 dmm-l-mediehus

I've noticed this on Linux too.

dbosk avatar Nov 24 '25 13:11 dbosk

It's particularly horrible on WSL2. This is unacceptable. Anthropic needs to do some fomral damage control on this one.

apolopena avatar Dec 01 '25 18:12 apolopena