[BUG] Chrome Native Host crashes with Bun panic on Windows
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
The Chrome Native Messaging Host crashes with a Bun runtime panic when trying to connect the Claude browser extension to Claude Code CLI on Windows.
## Environment
- Claude Code version: 2.1.31
- OS: Windows x64
- Bun version: 1.3.5
## Steps to Reproduce
- Install Claude Code CLI (v2.1.31)
- Install Claude browser extension from https://claude.ai/chrome
- Run the native host manually:
```powershell
& "C:\Users\Administrator\.claude\chrome\chrome-native-host.bat"
Error Output
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-Administrator
Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Bun Crash Report
Configuration Verified
All configuration files are correct. The crash occurs in Bun runtime itself.
What Should Happen?
panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Error Messages/Logs
Steps to Reproduce
- Install Claude Code CLI (v2.1.31)
- Install Claude browser extension from https://claude.ai/chrome
- Run the native host manually:
```powershell
& "C:\Users\Administrator\.claude\chrome\chrome-native-host.bat"
Error Output
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.31
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗