claude-code - 💡(How to fix) Fix [BUG] Chrome extension not connecting to Claude Code on Windows [2 comments, 3 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#55003Fetched 2026-05-01 05:48:47
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2

Error Message

Error Messages/Logs

  1. Check DevTools service worker console for WebSocket error

Root Cause

Issue: Running claude --chrome shows "Extension: Installed" but Status remains "Disabled". Reconnecting opens a tab that immediately closes. DevTools shows: WebSocket connection to 'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is closed before the connection is established. Root cause suspected: The chrome-native-host.exe in AppData\Roaming\Claude\ChromeNativeHost\ appears to only support the Desktop app's cloud bridge. Claude Code on Windows has no separate native host binary, unlike macOS which has ~/.claude/chrome/chrome-native-host.

Code Example

Status shows "Disabled" even after selecting "Reconnect extension". 
Reconnecting briefly opens a Chrome tab that immediately closes. 
DevTools console shows: "WebSocket connection to 
'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is 
closed before the connection is established."
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?

Description:

OS: Windows 11 Claude Code version: 2.1.123 Chrome extension version: 1.0.69 Both Claude Desktop and Claude Code installed

Issue: Running claude --chrome shows "Extension: Installed" but Status remains "Disabled". Reconnecting opens a tab that immediately closes. DevTools shows: WebSocket connection to 'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is closed before the connection is established. Root cause suspected: The chrome-native-host.exe in AppData\Roaming\Claude\ChromeNativeHost\ appears to only support the Desktop app's cloud bridge. Claude Code on Windows has no separate native host binary, unlike macOS which has ~/.claude/chrome/chrome-native-host.

What Should Happen?

When running "claude --chrome" on Windows with the Claude in Chrome extension installed (v1.0.69), Claude Code should successfully connect to the Chrome extension and show Status: Connected. Browser tools like navigate, screenshot, etc. should work from the Claude Code terminal.

Error Messages/Logs

Status shows "Disabled" even after selecting "Reconnect extension". 
Reconnecting briefly opens a Chrome tab that immediately closes. 
DevTools console shows: "WebSocket connection to 
'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is 
closed before the connection is established."

Steps to Reproduce

  1. Install Claude Desktop app on Windows
  2. Install Claude Code v2.1.123
  3. Install Claude in Chrome extension v1.0.69
  4. Run: claude --chrome in PowerShell
  5. Type /chrome inside the session
  6. Select "Reconnect extension"
  7. Observe tab opens and closes immediately
  8. Check DevTools service worker console for WebSocket error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Code: v2.1.123

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Both Claude Desktop app and Claude Code are installed simultaneously. The ~/.claude/chrome/ folder is never created on Windows (unlike macOS). DevTools service worker console shows: "WebSocket connection to 'wss://bridge.claudeusercontent.com/chrome/...' failed: WebSocket is closed before the connection is established." The chrome-native-host.exe in AppData\Roaming\Claude\ChromeNativeHost\ appears to only support the Desktop app cloud bridge, not Claude Code's local connection.

extent analysis

TL;DR

The issue can be resolved by using a separate native host binary for Claude Code on Windows, similar to the one used on macOS.

Guidance

  • Investigate the possibility of creating a separate native host binary for Claude Code on Windows, as the current chrome-native-host.exe only supports the Desktop app's cloud bridge.
  • Verify that the ~/.claude/chrome/ folder is not created on Windows, which might be a contributing factor to the issue.
  • Check the DevTools service worker console for any additional error messages that might provide more insight into the WebSocket connection failure.
  • Consider uninstalling the Claude Desktop app to see if it resolves the issue, as having both apps installed simultaneously might be causing conflicts.

Example

No code snippet is provided as the issue seems to be related to the native host binary and its compatibility with Claude Code on Windows.

Notes

The issue is suspected to be a regression, and the last working version is not specified. The fact that the ~/.claude/chrome/ folder is not created on Windows, unlike on macOS, might be a key factor in resolving the issue.

Recommendation

Apply a workaround by investigating alternative methods for establishing a WebSocket connection, such as using a different native host binary or modifying the existing one to support Claude Code's local connection.

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 extension not connecting to Claude Code on Windows [2 comments, 3 participants]