--chrome-native-host crashes on Windows with Bun internal panic (v2.1.70)
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?
The Chrome native messaging host (--chrome-native-host) crashes immediately on startup due to a Bun v1.3.11 internal
assertion failure, making the Claude in Chrome extension completely non-functional.
Environment:
- Claude Code: v2.1.70
- OS: Windows 11 Home (10.0.26200)
- Chrome extension: v1.0.57 (ID: fcoeoabgfenejglbffodgkkbkcdhcgfn)
- Bun (bundled): v1.3.11
Steps to reproduce:
- Install Claude Code v2.1.70 on Windows
- Install the Claude Chrome extension
- The extension attempts to connect via native messaging host
- Chrome reports: Unchecked runtime.lastError: Native host has exited.
Running the native host directly reproduces the crash:
"C:\Users\<user>\.local\bin\claude.exe" --chrome-native-host
Crash output:
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-<user>
============================================================
Bun v1.3.11 (dea015ec) Windows x64 (baseline)
panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Additional context:
- The native host manifest and registry entries are correctly configured
- Chrome successfully locates and launches the native host, but it crashes before establishing communication
- The Claude Desktop app's standalone chrome-native-host.exe does not have this issue, suggesting the crash is
specific to the Bun-bundled version
What Should Happen?
Claude chrome should be able to connect with claude code without errors
Error Messages/Logs
Steps to Reproduce
- Install Claude Code v2.1.70 on Windows
- Install the Claude Chrome extension
- The extension attempts to connect via native messaging host
- Chrome reports: Unchecked runtime.lastError: Native host has exited.
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.70 (Claude code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗