[Bug] Claude in Chrome Native Host crashes on Windows 11 - Bun internal assertion failure

Open 💬 14 comments Opened Jan 7, 2026 by aaasplus

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

Bug Description

Claude in Chrome feature fails to initialize on Windows 11. The Chrome extension shows "Unable to initialize the chat session" error. Running the native host command directly reveals a Bun runtime crash.

Environment

  • Claude Code Version: 2.1.0
  • OS: Windows 11
  • Bun Version: 1.3.5
  • Chrome Extension: Installed and enabled

Error Output

$ claude.exe --chrome-native-host

[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-chanh
============================================================
Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2

panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

https://bun.report/1.3.5/e_11e86cebEugggC++08F+mvBoxhkf0389e__0shkwCA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg

Missing Components

The crash prevents these files from being created:

  • %APPDATA%\Claude Code\ChromeNativeHost\ - Directory not found
  • %USERPROFILE%\.claude\chrome\ - Directory not found
  • Registry key HKCU\Software\Google\Chrome\NativeMessagingHosts\com.anthropic.claude_code_browser_extension - Not found

Steps to Reproduce

  1. Install Claude Code 2.1.0 on Windows 11
  2. Install Claude Chrome extension from Chrome Web Store
  3. Enable Claude in Chrome via /chrome command
  4. Try to use the extension - shows "Unable to initialize the chat session"
  5. Run claude.exe --chrome-native-host to see the crash

Expected Behavior

Native Messaging Host should initialize successfully and create the required configuration files.

Actual Behavior

Bun runtime crashes with "Internal assertion failure" before any files are created.

Workaround

None found. The feature is completely non-functional on this Windows 11 system.

Related Issues

  • #14894 - Native Host reconnect fails (macOS)
  • #15336 - Native Messaging Host not installing (Windows)

Additional Context

This appears to be a Bun runtime bug that surfaces specifically on Windows when running the Chrome Native Host component.

View original on GitHub ↗

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