[BUG] Claude Code extension crashes on Windows with Bun panic: ENOTCONN
Resolved 💬 4 comments Opened Oct 10, 2025 by gadgj Closed Oct 13, 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 extension fails to start on Windows 11, crashing with a Bun runtime panic (ENOTCONN: Transport endpoint is not connected). This occurs both when launched from VS Code and when running the native binary directly.
Environment
- OS: Windows 11 (x64)
- VS Code Version: 1.104.0
- Claude Code Extension Version: 2.0.13
- Bun Version: 1.2.23 (embedded in extension)
panic(main thread): Unexpected error
ENOTCONN: Transport endpoint is not connected (open())
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Crash Report Link
Additional Context
- Running
claude.exedirectly from PowerShell reproduces the same crash - No antivirus interference detected (Windows Defender real-time protection disabled for testing)
- Issue persists after full extension reinstall and VS Code restart
Request
Please investigate this Bun runtime crash and consider:
- Updating the embedded Bun version in the next extension release
- Providing a fallback/CLI mode within the extension to bypass Bun if crashes persist
- Noting any known workarounds for Windows users encountering this issue
What Should Happen?
Expected Behavior
Claude Code should start without crashing, allowing normal interaction.
Actual Behavior
- Extension host log shows:
Claude Code process exited with code 3221225477
- Manual execution of
claude.exeproduces:
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce
- Install Claude Code extension v2.0.13 from VS Code marketplace
- Restart VS Code
- Open Claude Code panel (or trigger automatic activation)
- Observe crash in output logs
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.13
Platform
Other
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗