[BUG] VS Code extension window freezes indefinitely after sending a prompt, cancel button unresponsive (macOS)
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?
Using the Claude Code extension for VS Code on macOS (not the CLI in a terminal), intermittently after sending a prompt the window gets stuck showing a "thinking" state indicator (e.g. "Perusing...", "Crafting...") indefinitely — it never completes or returns a response. The Cancel/interrupt button in the input panel becomes unresponsive and clicking it does nothing. The only way to recover is running "Developer: Reload Window" via the command palette (Cmd+Shift+P). This has been happening with noticeable frequency in recent sessions.
What Should Happen?
The extension should either complete the response normally, or the Cancel button should reliably interrupt the stuck request without requiring a full window reload.
Error Messages/Logs
No visible error message or stack trace appears in the UI — the panel simply stays in a loading state with no console output shown to the user.
Steps to Reproduce
- Open a long-running Claude Code session in VS Code (many prior turns/tool calls in the conversation).
- Send a new prompt/instruction.
- Occasionally (not on every message), the response never starts or gets stuck mid-stream, showing a persistent "thinking" indicator.
- Attempt to click the Cancel button (stop icon) in the input panel — it does not stop the request or restore the UI.
- The only recovery is Cmd+Shift+P > "Developer: Reload Window".
Note: happens intermittently, not consistently reproducible on demand. Seems more frequent in longer sessions with many prior tool calls.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.201 (Claude Code)
Platform
Other
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
VS Code extension version: [pega aquí el número — Extensions panel, busca "Claude Code"]
VS Code version: [Code > About Visual Studio Code]
<img width="286" height="89" alt="Image" src="https://github.com/user-attachments/assets/68b61472-d16e-4f16-a050-242f9294d296" />
<img width="200" height="52" alt="Image" src="https://github.com/user-attachments/assets/174cddeb-918a-49ed-8c44-de0da7a37222" />
<img width="265" height="61" alt="Image" src="https://github.com/user-attachments/assets/8d245601-8d96-4305-9039-0c0e11da7917" />