Chrome extension native host crashes on Windows - Bun socket listener panic
Description
The Chrome extension native host crashes immediately on startup on Windows, making it impossible to connect Claude Code CLI to the Chrome extension.
Running claude.exe --chrome-native-host produces a Bun runtime panic:
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-user
panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Stack Trace
- MiniEventLoop.zig:320 → platformEventLoop
- Listener.zig:115 → listen
- 2 unknown/js code
- llint_entry
The crash occurs in Bun's socket listener when attempting to create the named pipe for communication with the Chrome extension.
Environment
- OS: Windows 11 (x86_64)
- Claude Code CLI: v2.1.32
- Chrome Extension: v1.0.51
- Embedded Bun: v1.3.5
- Latest Bun release: v1.3.9
Root Cause
The embedded Bun v1.3.5 has a bug in the Windows socket listener (Listener.zig:115). The latest stable Bun (v1.3.9) likely includes a fix. Updating the embedded Bun version in Claude Code should resolve this
issue.
Steps to Reproduce
- Install Claude Code v2.1.32 on Windows 11
- Install the Claude Chrome extension v1.0.51
- Run claude.exe --chrome-native-host in a terminal
- Observe the Bun panic crash
Expected Behavior
The native host should start successfully and establish a named pipe for communication with the Chrome extension.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗