[BUG] Claude Code crashes when starting --chrome-native-host on Windows 11 (Bun panic)

Resolved 💬 3 comments Opened Jan 28, 2026 by njpsrl Closed Feb 1, 2026

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

Claude Code crashes with a Bun runtime panic when attempting to start the Chrome Native Host, preventing Claude in Chrome integration from working.

Steps to Reproduce

  1. Install Claude Code v2.1.22 on Windows 11
  2. Run: claude --chrome-native-host
  3. Application crashes immediately with Bun panic

Expected Behavior

Native messaging host should start and wait for input from Chrome extension.

Actual Behavior

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

Environment

  • OS: Windows 11 (v.win11_dt)
  • Claude Code Version: 2.1.22
  • Bun Version: 1.3.5
  • Installation Method: WinGet

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

Impact

  • Cannot use Claude in Chrome integration
  • /chrome command returns (no content)
  • Chrome extension shows "The Chrome browser extension is not connected"

Workaround Attempted

  • Created Native Messaging Host manifest manually at: %LOCALAPPDATA%\Google\Chrome\User Data\NativeMessagingHosts\com.anthropic.claude_code_browser_extension.json
  • Created .bat wrapper at: %USERPROFILE%\.claude\chrome\chrome-native-host.bat
  • Configured Chrome extension permissions for localhost
  • All configuration correct, but crashes prevent functionality

Additional Notes

This appears to be a Bun runtime issue specific to Windows 11. The crash happens before any Chrome communication can occur.

What Should Happen?

Open Chrome Extension from Clode Code

Error Messages/Logs

Steps to Reproduce

Bun Crash Report

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

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.14

Claude Code Version

2.1.22

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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