[BUG] Chrome native host crashes with Bun panic when creating named pipe.
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?
Environment:
- Claude Code: 2.1.29
- OS: Windows 11 (22631.6199)
- Bun: 1.3.5
Issue:
Chrome native host crashes with Bun panic when creating named pipe.
Reproduction:
Run: claude.exe --chrome-native-host
Error:
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-Ankit
panic(main thread): Internal assertion failure
Crash report:
https://bun.report/1.3.5/e_11e86cebEugggC++08F+mvBoxhkf0389e__0shkwCA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg
What Should Happen?
The native messaging host should start successfully and create a named pipe
at \\.\pipe\claude-mcp-browser-bridge-<username> to enable communication
between Claude Code CLI and the Chrome extension.
Expected output:
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-<username>
[Claude Chrome Native Host] Ready and listening for connections
The Chrome extension should then be able to connect, allowing browser
automation features (navigate, click, screenshot, etc.) to work.
Error Messages/Logs
Steps to Reproduce
- Install Claude Code CLI via npm: npm install -g @anthropic-ai/claude-code 2. Install Claude browser extension from Chrome Web Store
- Open Chrome and ensure the extension is active
- Start Claude Code CLI: claude
- Run /mcp to connect to Chrome
- Attempt any browser automation (e.g., navigate to a URL)
Or directly test the native host:
- Open Command Prompt
- Run: "C:\Users\<username>\.local\bin\claude.exe" --chrome-native-host
- Observe the Bun panic crash
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.29
Platform
Anthropic API
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 ↗