If you use Claude Code as a VS Code extension, you may have seen this frustrating message appear mid-task:
Not responding — try stopping
Clicking "try stopping" does nothing — or the button simply doesn't respond at all. This behavior is largely specific to the VS Code extension's Webview panel, and is much less common when using Claude Code from the terminal CLI directly.
Why Does Claude Code Show "Not Responding"?
The VS Code extension version of Claude Code relies on two components working in sync: the backend CLI process and the Webview GUI panel. The "Not responding" status appears when something breaks that connection:
- Backend timeout (60+ seconds): Long-running tasks like large code generation or test execution can exceed the response window
- Corrupted Webview deserialization: After restarting VS Code, a previously saved panel state can fail to restore cleanly
- Claude Desktop conflict (Windows): Running the VS Code extension and Claude Desktop Code mode simultaneously on the same machine can cause sessions to disappear
- CLI/extension version mismatch: When your CLI version and VS Code extension version are out of sync
- Temporary network interruption: A brief connection drop prevents API responses from arriving
How to Fix It: 5 Steps
Step 1: Reload the VS Code Window
This is the quickest fix and works in most cases.
- Open the Command Palette (
⌘ + Shift + Pon macOS /Ctrl + Shift + Pon Windows) - Type "Developer: Reload Window" and press Enter
Reloading reinitializes the extension's context keys, which often resolves the Webview panel issue without losing your overall work. After the reload, you can resume your previous session:
# Resume a previous Claude Code session after reload
/resumeStep 2: Clear the Webview Cache
If a window reload doesn't help, the saved Webview state may be corrupted.
On Windows:
%APPDATA%\Code\User\workspaceStorage
Open that folder, find any subfolders related to anthropic.claude-code, and delete them. Then restart VS Code.
On macOS:
# Run in Terminal
rm -rf ~/Library/Application\ Support/Code/User/workspaceStorage/*anthropic*After clearing the cache and restarting VS Code, the Webview panel will be recreated fresh instead of restoring a potentially broken state.
Step 3: Resolve the Claude Desktop Conflict (Windows)
On Windows, running both the VS Code Claude Code extension and Claude Desktop simultaneously is a known source of session conflicts. Sessions may disappear or become unresponsive because both applications compete for the same session management.
- Fully quit Claude Desktop before using Claude Code in VS Code
- Or switch to using the terminal CLI (
claudecommand) as an alternative to the GUI panel
Anthropic is actively tracking this issue in GitHub Issues (#39381). Keeping both the extension and CLI updated is the best way to pick up fixes as they're released.
Step 4: Update to the Latest Version
Version mismatches between the CLI and the VS Code extension are a common culprit. Updating both will often resolve the problem.
# Update the Claude Code CLI globally
npm update -g @anthropic-ai/claude-code
# Confirm the installed version
claude --versionIn VS Code, open the Extensions panel (⌘ + Shift + X), search for "Claude Code", and click Update if the button is available. Restart VS Code after updating.
Step 5: Perform a Clean Reinstall
If you've tried all of the above and the issue persists, a clean reinstall is the most thorough option.
# 1. Uninstall the Claude Code VS Code extension from the Extensions panel
# 2. Reinstall the CLI
npm uninstall -g @anthropic-ai/claude-code
npm install -g @anthropic-ai/claude-code
# 3. Reinstall the extension from the VS Code Marketplace
# Search for "Claude Code" in the Extensions panel and install
# 4. Re-authenticate
claude loginSummary
When Claude Code shows "Not responding — try stopping" in VS Code, work through these steps in order:
- Reload the VS Code window (Developer: Reload Window) — try this first
- Clear the Webview cache — if a reload doesn't help
- Close Claude Desktop (Windows users) — resolves the session conflict
- Update CLI and extension to the latest version
- Clean reinstall — the nuclear option when nothing else works
Steps 1 and 2 resolve the issue in the majority of cases. If the error keeps coming back, consider breaking your work into smaller tasks or using the terminal CLI alongside the VS Code extension for a more stable experience.
For a deeper dive into handling all kinds of Claude Code errors, the Claude Code Error-Solving Prompt Templates Collection covers 30+ common error patterns with ready-to-use prompts. And if you want to unlock the full potential of the VS Code extension, check out Claude Code VS Code Extension Productivity Guide.