[BUG] Chrome native host crashes with Bun panic on Windows (claude --chrome-native-host)

Resolved 💬 2 comments Opened Feb 5, 2026 by athrael-soju Closed Feb 6, 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?

The Chrome native messaging host (claude.exe --chrome-native-host) crashes immediately with a Bun internal assertion failure, preventing the Claude in Chrome extension from connecting to
Claude Code.

Running the native host directly produces:
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-athra
panic(main thread): Internal assertion failure
oh no: Bun has crashed.

What Should Happen?

The native host should start successfully and bridge the Chrome extension to Claude Code via the named pipe.

Error Messages/Logs:
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.
https://bun.report/1.3.5/e_11e86cebEugggC++08F+mvBoxhkf0389e__0shkwCA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg

Error Messages/Logs

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.
  https://bun.report/1.3.5/e_11e86cebEugggC++08F+mvBoxhkf0389e__0shkwCA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg

Steps to Reproduce

  1. Install Claude Code 2.1.32 on Windows 11
  2. Install Claude in Chrome extension (ID: fcoeoabgfenejglbffodgkkbkcdhcgfn)
  3. Open Chrome and activate the extension
  4. Connection fails silently
  5. Reproduce crash directly: run claude --chrome-native-host in terminal

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

2.1.32

Claude Code Version

Claude Code Version: 2.1.32 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Native host configuration is correct:

  • Registry key HKCU\Software\Google\Chrome\NativeMessagingHosts\com.anthropic.claude_code_browser_extension

points to C:\Users\athra\AppData\Roaming\Claude Code\ChromeNativeHost\com.anthropic.claude_code_browser_extension.json

  • Manifest correctly references C:\Users\athra\.claude\chrome\chrome-native-host.bat
  • Bat file calls: claude.exe --chrome-native-host
  • claude.exe exists at C:\Users\athra\.local\bin\claude.exe
  • Chrome extension has nativeMessaging permission
  • Extension ID fcoeoabgfenejglbffodgkkbkcdhcgfn is in allowed_origins

The crash happens during socket listener creation for the named pipe
(\\.\pipe\claude-mcp-browser-bridge-athra). The Bun runtime (v1.3.5)
panics before any connection is established.

Also note: the desktop app native host manifest
(com.anthropic.claude_browser_extension.json) had a stale path pointing
to app-1.1.1520 instead of app-1.1.2102. This was manually fixed but
did not resolve the issue since the crash is in the Claude Code native
host, not the desktop app one.

View original on GitHub ↗

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