Skip to content

[Windows] Chrome extension reconnect fails - page closes immediately #22885

Description

@pespinoza12

When attempting to reconnect the Chrome extension from Claude Code, the browser opens clau.de/chrome/reconnect but
the tab closes/disconnects immediately without completing the authorization flow.

Environment

  • OS: Windows 10 Pro 25H2 (Build 26200)
  • Chrome: 144.0.7559.110 (Official Build) (64-bit)
  • Claude Code: 2.1.30
  • Extension ID: fcoeoabgfenejglbffodgkkbkcdhcgfn
  • Node.js: v22.18.0

Steps to Reproduce

  1. Run claude in terminal
  2. Execute /chrome command
  3. Status shows "Enabled" and "Installed" (green)
  4. Select "Reconnect extension"
  5. Chrome opens clau.de/chrome/reconnect
  6. The page immediately closes/disconnects before authorization completes

What I Expected

The authorization flow should complete and connect the extension to Claude Code.

What Actually Happened

The reconnect page opens briefly then closes automatically. The extension never connects.

Troubleshooting Already Attempted

  1. ✅ Reinstalled Chrome extension
  2. ✅ Restarted Chrome completely (killed all processes)
  3. ✅ Restarted Claude Code
  4. ✅ Verified logged into claude.ai with same account
  5. ✅ Manually created Native Messaging Host JSON file at:
    C:\Users\<user>\AppData\Local\Google\Chrome\NativeMessagingHosts\com.anthropic.claude_code.json
  6. ✅ Added Windows Registry entry at:
    HKCU:\Software\Google\Chrome\NativeMessagingHosts\com.anthropic.claude_code
  7. ✅ Verified chrome-native-host.bat exists at ~/.claude/chrome/

Relevant Debug Logs

Claude Code detects the extension correctly:
[Claude in Chrome] Found chrome profiles: Default
[Claude in Chrome] Detected browser: Google Chrome
[Claude in Chrome] Extension fcoeoabgfenejglbffodgkkbkcdhcgfn found in chrome Default

But when running the native host manually, got this error (suggesting connection issues):
[Claude Chrome Native Host] Creating socket listener: .\pipe\claude-mcp-browser-bridge-
[Claude Chrome Native Host] Socket server error: Error: listen EADDRINUSE: address already in use

Chrome Extension Console Errors

From chrome://extensions errors page:

  • Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
  • Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

Additional Context

The Native Messaging Host file was missing initially (empty NativeMessagingHosts folder). After manually creating
it, the issue persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idearea:mcpbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions