claude-code - 💡(How to fix) Fix [BUG] --chrome-native-host crashes on Windows (Bun panic) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49070Fetched 2026-04-17 08:51:45
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
labeled ×5unlabeled ×1

Error Message

Error Messages/Logs

Code Example

Observed behavior

  Native host panics on startup:

  [Claude Chrome Native Host] Initializing...
  [Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-<user>

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

  Crash report: https://bun.report/1.3.13/e_1edb020dkggggEkgggC+pu/M+ky6G6lnsoBq3+loB__utw15CA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The Chrome native messaging host crashes immediately on launch, preventing Claude Code from connecting to the Claude in Chrome extension. The crash is a Bun internal assertion failure, not a user code issue.

Environment

  • Claude Code: 2.1.110
  • OS: Windows 11 Enterprise 10.0.26200
  • Bun: 1.3.13 (bundled)
  • Node: v24.14.1
  • Chrome extension ID: fcoeoabgfenejglbffodgkkbkcdhcgfn

What Should Happen?

Expected behavior

Native host starts successfully and Chrome extension connects to Claude Code.

Error Messages/Logs

Observed behavior

  Native host panics on startup:

  [Claude Chrome Native Host] Initializing...
  [Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-<user>

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

  Crash report: https://bun.report/1.3.13/e_1edb020dkggggEkgggC+pu/M+ky6G6lnsoBq3+loB__utw15CA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg

Steps to Reproduce

Steps to reproduce

  1. Install Claude in Chrome extension
  2. Run /chrome in Claude Code to register the native messaging host
  3. Restart Chrome
  4. Attempt to connect — tabs_context_mcp returns "Browser extension is not connected"
  5. Run the native host manually to see the crash: "C:\Users<user>.local\bin\claude.exe" --chrome-native-host

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

Claude Code: 2.1.110

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Notes

  • Registry key at HKCU\Software\Google\Chrome\NativeMessagingHosts\com.anthropic.claude_code_browser_extension is correctly set
  • Native messaging manifest and batch file are present and correctly configured
  • Extension works standalone (responds to queries in its popup)
  • Claude Code is up to date (2.1.110 is latest)

extent analysis

TL;DR

The Chrome native messaging host crash is likely due to a compatibility issue with Bun version 1.3.13, and a workaround may involve investigating the crash report or checking for updates to Bun or Claude Code.

Guidance

Notes

The issue is specific to Windows 11 and Bun version 1.3.13, and the crash report may provide more information about the root cause.

Recommendation

Apply workaround: Investigate the crash report and check for updates to Bun or Claude Code, as the issue may be related to a compatibility problem with the current version of Bun.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] --chrome-native-host crashes on Windows (Bun panic) [1 participants]