[BUG] VS Code Extension crashes repeatedly on macOS - Extension host terminated unexpectedly

Resolved 💬 3 comments Opened Nov 24, 2025 by brandomy Closed Nov 27, 2025

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?

## Bug Description
Claude Code VS Code extension (v2.0.50) crashes repeatedly within seconds of
activation, causing constant "Extension host terminated unexpectedly" popups.

## Environment

  • OS: macOS 14.6 (Darwin 24.6.0)
  • VS Code Version: [Run code --version to get this]
  • Claude Code Extension Version: 2.0.50
  • Claude Code CLI Version: [Run claude --version]
  • Node Version: [Run node --version]
  • Account Type: Claude Max
  • Model: Sonnet 4.5

## Steps to Reproduce

  1. Install Claude Code extension from marketplace
  2. Open VS Code in project directory
  3. Extension activates automatically
  4. Extension host crashes within 10-20 seconds
  5. VS Code auto-restarts extension
  6. Crash repeats indefinitely

## Expected Behavior
Extension should activate and remain stable

## Actual Behavior
Extension crashes repeatedly with "Extension host terminated unexpectedly 3
times within the last 5 minutes" error

## Extension Host Logs
[Attach the full logs you provided]

## Additional Context

  • CLI works perfectly without issues
  • Tried uninstalling/reinstalling extension
  • Tried removing extension cache
  • Only Claude Code extension shows this behavior
  • No other extensions are causing conflicts

## Workaround
Disabled extension and using CLI exclusively

## Request
Please investigate why the VS Code extension crashes on macOS while the CLI
remains stable.

Code Version:

extension-host-logs.txt

1.106.2
1e3c50d64110be466c0b4a45222e81d2c9352888
arm64

What Should Happen?

The Claude Code VS Code extension should:

  1. Activate successfully without crashing
  2. Remain stable and responsive
  3. Allow users to access Claude Code features via VS Code UI (inline chat,

sidebar, etc.)

  1. Not cause repeated "Extension host terminated unexpectedly" errors

Expected behavior matches the CLI experience - stable, reliable, no crashes.

What actually happens (instead)

The Claude Code VS Code extension:

  1. Activates initially
  2. Crashes within 10-20 seconds
  3. Triggers "Extension host terminated unexpectedly 3 times within the last 5

minutes" error

  1. Auto-restarts and crashes again
  2. Creates an infinite crash-restart loop
  3. Makes VS Code unusable due to constant error popups

The extension never stabilizes enough to be functional.

These detailed descriptions will help the Anthropic team reproduce and
diagnose the issue. The key point is highlighting the contrast between the
stable CLI and the crashing extension (same version).

Error Messages/Logs

Steps to Reproduce

  1. Install Claude Code extension from VS Code marketplace (v2.0.50)
  2. Open VS Code in any project directory (e.g., ~/dev/brandmine-hugo/crm)
  3. Extension activates automatically on startup
  4. Within 10-20 seconds, "Extension host terminated unexpectedly" error

appears

  1. Click "Restart Extension Host" or dismiss the error
  2. Extension re-activates
  3. Crashes again within 10-20 seconds
  4. Cycle repeats indefinitely (crashed 3+ times in logs)

Note: Claude Code CLI (same version 2.0.50) works perfectly via terminal
without any crashes.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.50 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗