[BUG] Title: Chrome integration: native host crashes with ERR_INVALID_ARG_TYPE on Windows named pipe creation (Bun runtime)

Resolved 💬 3 comments Opened May 2, 2026 by chetwerikoff Closed May 5, 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?

Environment:

OS: Windows 11
Claude Code: v2.1.126 (npm install)
Runtime: Bun v1.3.14 (Windows x64 baseline)
Chrome extension: latest (installed and authenticated)

Repro:

Install Claude Code via npm
Install Claude in Chrome extension
Run /chrome → "Enabled by default"
Run chrome-native-host.bat directly to test

Expected: Native host starts and listens on named pipe.
Actual: Crashes immediately with:
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-che
[Claude Chrome Native Host] Socket server error: ...
TypeError: Failed to listen at \\.\pipe\claude-mcp-browser-bridge-che
code: "ERR_INVALID_ARG_TYPE"
at listen (unknown:1:1)
at node:net:1339:30
at listenInCluster (node:net:1423:24)
...
Looks like the Bun runtime's Windows named pipe support has an incompatibility with the way net.Server.listen() is called for \\.\pipe\... paths. This breaks Chrome integration entirely on Windows for this version.
The .bat file correctly references the npm-installed binary, registry config and JSON manifest are all valid. Chrome extension is installed, authenticated, and visible. Issue is purely in the native host startup itself.

What Should Happen?

Native host starts and listens on named pipe.

Error Messages/Logs

Steps to Reproduce

Repro:

Install Claude Code via npm
Install Claude in Chrome extension
Run /chrome → "Enabled by default"
Run chrome-native-host.bat directly to test

Expected: Native host starts and listens on named pipe.
Actual: Crashes immediately with:
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \\.\pipe\claude-mcp-browser-bridge-che
[Claude Chrome Native Host] Socket server error: ...
TypeError: Failed to listen at \\.\pipe\claude-mcp-browser-bridge-che
code: "ERR_INVALID_ARG_TYPE"
at listen (unknown:1:1)
at node:net:1339:30
at listenInCluster (node:net:1423:24)
...

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

2.1.126

Claude Code Version

2.1.126

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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