[Bug] Claude Code performance degradation - slow execution

Resolved 💬 24 comments Opened Nov 22, 2025 by gomes0202 Closed Jan 26, 2026

Bug Description
Claude code is very slow!!!!

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.0.50
  • Feedback ID: d1977ec6-f80c-4622-9374-29d1a15a9482

Errors

[{"error":"Error: Could not load the \"sharp\" module using the win32-x64 runtime\nPossible solutions:\n- Ensure optional dependencies can be installed:\n    npm install --include=optional sharp\n- Ensure your package manager supports multi-platform installation:\n    See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n    npm install --os=win32 --cpu=x64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install\n    at <anonymous> (B:/~BUN/root/claude.exe:832:36230)\n    at <anonymous> (B:/~BUN/root/claude.exe:11:356)\n    at <anonymous> (B:/~BUN/root/claude.exe:833:88)\n    at <anonymous> (B:/~BUN/root/claude.exe:11:356)\n    at <anonymous> (B:/~BUN/root/claude.exe:833:79804)\n    at <anonymous> (B:/~BUN/root/claude.exe:11:356)\n    at <anonymous> (B:/~BUN/root/claude.exe:833:79980)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-22T22:08:44.959Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at v8H (B:/~BUN/root/claude.exe:833:80003)\n    at async DJ1 (B:/~BUN/root/claude.exe:1451:41699)\n    at async $AA (B:/~BUN/root/claude.exe:1451:41917)\n    at async call (B:/~BUN/root/claude.exe:1460:389)\n    at async jo1 (B:/~BUN/root/claude.exe:2146:26145)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-22T22:08:44.959Z"},{"error":"TypeError: (L.default||L) is not a function. (In '(L.default||L)(H)', '(L.default||L)' is an instance of Object)\n    at v8H (B:/~BUN/root/claude.exe:833:80003)\n    at async DJ1 (B:/~BUN/root/claude.exe:1451:41699)\n    at async $AA (B:/~BUN/root/claude.exe:1451:41917)\n    at async call (B:/~BUN/root/claude.exe:1460:389)\n    at async jo1 (B:/~BUN/root/claude.exe:2146:26145)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-22T22:08:44.960Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10636)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/claude.exe:31:3314)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-22T22:22:08.705Z"},{"error":"Error\n    at <anonymous> (B:/~BUN/root/claude.exe:32:10636)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/claude.exe:31:3314)\n    at request (B:/~BUN/root/claude.exe:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-22T22:23:43.203Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:1256:3939)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-22T22:40:14.880Z"},{"error":"Error: No assistant message found\n    at dR (B:/~BUN/root/claude.exe:3936:7733)\n    at async <anonymous> (B:/~BUN/root/claude.exe:3936:17717)\n    at async W$A (B:/~BUN/root/claude.exe:1409:2822)\n    at async rX (B:/~BUN/root/claude.exe:3936:17574)\n    at async <anonymous> (B:/~BUN/root/claude.exe:3942:5545)\n    at async <anonymous> (B:/~BUN/root/claude.exe:3942:5032)\n    at async Yl$ (B:/~BUN/root/claude.exe:904:14100)\n    at async checkPermissions (B:/~BUN/root/claude.exe:1589:1998)\n    at async iM9 (B:/~BUN/root/claude.exe:4009:4697)\n    at async <anonymous> (B:/~BUN/root/claude.exe:4009:6182)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-22T22:40:14.881Z"}]

View original on GitHub ↗

24 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/11201
  2. https://github.com/anthropics/claude-code/issues/10021
  3. https://github.com/anthropics/claude-code/issues/3152

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

ronanocearbhaill-ui · 7 months ago

Have had a similar issue the past 14 hours on Claude Code on Windows, run both from VS Code and Command line. Tried removing all cached files, restarting, updating Claude.. no fixes yet. Practically unusable as it starts to become unresponsive (for up to 20 minutes at a time) when working on tasks - it kicks in at very early stages too - long before any auto-compact. Larger scripts obviously more problematic.

istep94 · 7 months ago

same problem very slow

andrevabo · 7 months ago

2.0.50 is unusable on Windows. It starts fine, but performance degrades in less than a minute after claude starts doing any work. Terminal freezes completely and even the timer stops updating.

Georgevanvelzen · 7 months ago

same problem on windows using WSL. Runs well for a few seconds but as it now sends full code files for review instead of just the relevant lines it is unusable Uninstalled and installed 2.0.49 and am able to work, until the autoupdate will break me again.

JackBeauregard · 7 months ago

I'm experiencing the same thing. The first prompt works mostly fine, but after that, it becomes slow, sometimes even unusable.

ytzhakov · 7 months ago

2.0.50 introduced this bug.
reverted to 2.0.49

tixtixti · 7 months ago

2.0.50 is absolutely unusable on windows. 5 min tasks can take up to 2 hours.

ronanocearbhaill-ui · 7 months ago

Downgrade with auto update disabled, for anyone interested.

Complete Setup Process
STEP 1: Ensure Hosts File is Unblocked

Open Command Prompt as Administrator
notepad C:\Windows\System32\drivers\etc\hosts
Delete this line if present: 127.0.0.1 registry.npmjs.org
Save and close
Verify: ping registry.npmjs.org (should show real IP)

--------------------------------------------------------------------------------------------------------

STEP 2: Uninstall Global Version
cmdnpm uninstall -g @anthropic-ai/claude-code

--------------------------------------------------------------------------------------------------------

STEP 3: Close Any Running Claude Code

Check Task Manager
End any node.exe processes running Claude
Close Command Prompt windows with Claude

--------------------------------------------------------------------------------------------------------

STEP 4: Clean Local Install Directory
cmdcd C:\claude-local
rmdir /S /Q node_modules
del package-lock.json

--------------------------------------------------------------------------------------------------------

STEP 5: Install Old Stable Version Locally
cmdnpm install @anthropic-ai/claude-code@2.0.35
Wait for "added 2 packages"

--------------------------------------------------------------------------------------------------------

STEP 6: Block Auto-Update

Open Command Prompt as Administrator
notepad C:\Windows\System32\drivers\etc\hosts
Add: 127.0.0.1 registry.npmjs.org
Save and close
Verify: ping registry.npmjs.org (should show 127.0.0.1)

--------------------------------------------------------------------------------------------------------

STEP 7: Run Claude Code
cmdcd C:\claude-local
node node_modules\@anthropic-ai\claude-code\cli.js

OR Create Easy Launcher
Simple Batch File

Create the file:
cmd notepad C:\claude-local\claude.bat
Paste this into Notepad:
batch @echo off
node C:\claude-local\node_modules\@anthropic-ai\claude-code\cli.js %*

Save and close
Now you can run it like this:
cmd C:\claude-local\claude.bat

--------------------------------------------------------------------------------------------------------

Keep both versions simultaneously
How to Keep Old + New Version:
When the new fixed version comes out:
Option 1: Global Install
Temporarily remove hosts block

cmd notepad C:\Windows\System32\drivers\etc\hosts
Delete the 127.0.0.1 registry.npmjs.org line, save

Install new version globally
cmd npm install -g @anthropic-ai/claude-code

Add hosts block back (Same file, add the line back)
Now you have BOTH:

Old stable: C:\claude-local\claude.bat (runs 2.0.35)
New version: claude (runs latest)
Both blocked from auto-updating

--------------------------------------------------------------------------------------------------------

Create Desktop Shortcut:
Drag and Drop

Open File Explorer
Navigate to C:\claude-local
Find claude.bat
Right-click, create shortcut and cut to your Desktop

ytzhakov · 7 months ago

@ronanocearbhaill-ui
no need for all the ceramony
just use the native windows version (why use node?) and set
"env": {
"DISABLE_AUTOUPDATER": 1
}

and/or: "autoUpdates": false

ronanocearbhaill-ui · 7 months ago

If you can download an old version that way then go ahead.

johnjuuljensen · 7 months ago

2.0.50 is insanely unbearably slow. I tried all the cleaning tips, but no matter what, 2-3 prompts in things would grind to a halt.
Downgrading to 2.0.49 was the trick.

ytzhakov · 7 months ago
sjmuk1 · 7 months ago

Just to further pinpoint the regression window: I encountered the same severe lag and total terminal input freeze starting with v2.0.46 (and v2.0.50), on Windows 11, tested both natively and in the CLI. Clean reinstalls/fresh configs and disabling auto-updates did not help. However, rolling back to v2.0.36 completely resolves all lag and freezing for me: performance is flawless, even in long sessions. So the underlying bug for input/copy-paste lockup appears between 2.0.36 and 2.0.46.

Hope this helps developers identify the exact regression window and prioritize a fix.

michalss · 7 months ago
Just to further pinpoint the regression window: I encountered the same severe lag and total terminal input freeze starting with v2.0.46 (and v2.0.50), on Windows 11, tested both natively and in the CLI. Clean reinstalls/fresh configs and disabling auto-updates did not help. However, rolling back to v2.0.36 completely resolves all lag and freezing for me: performance is flawless, even in long sessions. So the underlying bug for input/copy-paste lockup appears between 2.0.36 and 2.0.46. Hope this helps developers identify the exact regression window and prioritize a fix.

how did u disable autoupdate ? On windows..

gravitydeepimpactsun · 7 months ago

@michalss

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

Then:

npm install -g @anthropic-ai/claude-code@2.0.49

TheAuditorTool · 7 months ago

Same here. Even updated to preview 7.6.0 powershell and reinstalled completely, deleted all .claude folders, all settings, all history... Still nightmare slow and its not the model, its the client that freezes...
Likely related to bun memory issues as always because closing and running a fresh chat gives you 5-10 minutes of normal speed.

sjmuk1 · 7 months ago
> Just to further pinpoint the regression window: I encountered the same severe lag and total terminal input freeze starting with v2.0.46 (and v2.0.50), on Windows 11, tested both natively and in the CLI. Clean reinstalls/fresh configs and disabling auto-updates did not help. However, rolling back to v2.0.36 completely resolves all lag and freezing for me: performance is flawless, even in long sessions. So the underlying bug for input/copy-paste lockup appears between 2.0.36 and 2.0.46. > Hope this helps developers identify the exact regression window and prioritize a fix. how did u disable autoupdate ? On windows..

Hi,

I did it in a couple of places to make sure because it's not especially obvious. I added this -
"autoUpdates": false

  • after -
  • "defaultMode": "bypassPermissions" -

to my ~/.calude/settings.json

I also temporarily set a system-wide value for the updater, my research suggested that Claude uses:

[System.Environment]::SetEnvironmentVariable("DISABLE_AUTOUPDATER", "1", "User")

Do your own research on the updater environment variable though in relation to your specifc system. Everything else seems to still update fine for me. Those two changes have completely worked.
This is what the /Doctor command now shows:

/Doctor

Diagnostics
└ Currently running: npm-global (2.0.36)
└ Auto-updates: false

Good luck, I plan to stay on 2.0.36 until this issue is closed (or I switch to Antigravity)

kk-code-lab · 7 months ago

Claude Code (a terminal application) consumes 700 MB when idle on my system. That's about the same as Visual Studio 2022 Community with a loaded WPF project. In the performance monitor, I see it jumping from 700 to 1000 MB when running bash commands and going back to 700.

Not great. It's really gotten worse from version to version.

szwang · 7 months ago

Thanks all for reporting! So sorry for the slowness here. We're aware of these issues and the Claude Code team is looking into it 🙏

szwang · 7 months ago

@gomes0202 are you still seeing the Could not load the \"sharp\" module error? What triggered that error?

github-actions[bot] · 6 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] · 5 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 5 months ago

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.