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

[Bug] Infinite Loop: Claude Doctor Command Causes Terminal Hang and CPU Overload

Open maceoCK opened this issue 1 year ago • 9 comments

Bug Description claude doctor hangs indefinitely, uses 100% CPU, and soft locks terminal session

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.96
  • Feedback ID: 6db334c0-ffee-40d4-9812-213dbabe06ee

Errors

[]

maceoCK avatar Aug 28 '25 17:08 maceoCK

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/6705
  2. https://github.com/anthropics/claude-code/issues/1656
  3. https://github.com/anthropics/claude-code/issues/4463

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 Aug 28 '25 17:08 github-actions[bot]

i am seeing the same problem

OS: macos Sequoia 15.6.1 Terminal: macos native Terminal claude code: 1.0.96

symptom: CPU usage 100%, hang the whole terminal session

chaihwee79 avatar Aug 29 '25 03:08 chaihwee79

This just happened to me on macOS with Cursor. The important distinction for me is that claude doctor works fine when installed via npm but leads to this issue when installed via curl -fsSL https://claude.ai/install.sh | bash .

mnafees avatar Aug 29 '25 11:08 mnafees

yeah this just happened to me after switching to the native installation from npm

edit: does appear to be when using the claude doctor command

akhilnchauhan avatar Aug 29 '25 14:08 akhilnchauhan

For folks seeing this hang, do you have npm installed on your system? If you run npm -g config get prefix does it come back right away?

wolffiex avatar Aug 29 '25 15:08 wolffiex

@wolffiex

For folks seeing this hang, do you have npm installed on your system? If you run npm -g config get prefix does it come back right away?

  • Yes, npm installed (hard to do anything without that)
  • npm -g config get prefix comes back right away (showing correct global install dir)

This affects more than just claude doctor. See my more expansive issue: https://github.com/anthropics/claude-code/issues/6823

nsxdavid avatar Aug 29 '25 18:08 nsxdavid

This should be resolved in 1.0.98, released today.

ant-kurt avatar Aug 29 '25 22:08 ant-kurt

Confirmed, works now.

nsxdavid avatar Aug 30 '25 03:08 nsxdavid

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 Sep 06 '25 14:09 github-actions[bot]