[BUG] claude doctor hangs indefinitely, uses 100% CPU, and soft locks terminal session

1 min read Original article ↗

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.95
  • Operating System: Windows 11 and Ubuntu WSL
  • Terminal: PowerShell and bash

Bug Description

Running 1.0.93 from a fresh terminal window, running the command claude doctor worked successfully. Once Claude is updated to 1.0.95, the same command soft locks your computer. As your CPU is 100% utilized, the terminal will not respond to anything, and the command seems to hang indefinitely, as if it's in a recursive loop.

If you run it while inside Claude using the /command, it appears to work. It's only when you run it outside a running Claude session.

Can reproduce in both WSL and Windows, and node 20 and 22.

Steps to Reproduce

  1. Update to 1.0.95
  2. Run claude doctor

Expected Behavior

It to return the results of doctor.

Actual Behavior

Hangs forever, CPU jumps to 100%, terminal soft locks.

Additional Context

Can confirm it was fine with 93 as it ran correctly on 93, right before I updated to 95.