[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

https://bun.report/1.2.23/e_1cf13671Az//v//B+kjgXisjljB2wm7iB__0jg40CA0eNoLzUutKEhNLklNUUgtKsov4pKONsiVjjY2zHX18w9x9vfzgwgY5VqBGAohRYl5xQX5RSUKqXkpBfmZeSUKmcUKefklCsn5eXkQg0CqNfILUvM0NDVBmgCMOyDn

Additional Context

  • Running claude.exe directly 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:

  1. Updating the embedded Bun version in the next extension release
  2. Providing a fallback/CLI mode within the extension to bypass Bun if crashes persist
  3. 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.exe produces:

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Install Claude Code extension v2.0.13 from VS Code marketplace
  2. Restart VS Code
  3. Open Claude Code panel (or trigger automatic activation)
  4. 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_

View original on GitHub ↗

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