Startup freeze and 100% CPU zombie processes when VS Code extension and CLI versions mismatch

Status Fixed / completed
Reported on v2.1.29
Maintainer reply None cached
Activity 4 comments · opened Feb 1, 2026 · closed Feb 1, 2026

Description

Claude Code CLI freezes on startup and leaves orphaned processes consuming 100% CPU when the VS Code extension and CLI are on different versions.

Environment

  • macOS Tahoe 26 (Apple Silicon)
  • CLI version: was mismatched, now 2.1.29
  • VS Code extension: updated to 2.1.27 at 09:01, CLI was on different version
  • Node: 24.9.0

Steps to reproduce

  1. Have VS Code extension auto-update to a new version
  2. CLI remains on older version
  3. Run claude in terminal
  4. Startup freezes, sometimes with TMP directory path displayed

Observed behavior

  • Terminal freezes after typing claude
  • Multiple orphaned processes (PPID=1) running at 100% CPU
  • Processes ignore SIGTERM, require SIGKILL
  • stdin/stdout/stderr show as "(revoked)" in lsof
  • ~20 failed session attempts created scratchpad directories in /private/tmp/claude-501/

Expected behavior

  • Graceful error message about version mismatch, or
  • Startup should not hang, or
  • Process should exit cleanly if it can't initialize

Workaround

pkill -9 -f claude
rm -rf ~/.claude/local/
# Update CLI to match VS Code extension version
npm update -g @anthropic-ai/claude-code

View original on GitHub ↗

4 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/22253
  2. https://github.com/anthropics/claude-code/issues/21812
  3. https://github.com/anthropics/claude-code/issues/13229

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

Hazurion · 8 months ago

I have the same issue. I had to revert back to V 2.1.26 since the 2.1.27 update dropped.

vibejockey · 8 months ago

Closing as duplicate of #22253. Added version mismatch observations there.

github-actions[bot] · 8 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.