openclaw - 💡(How to fix) Fix [Bug]: Desktop cannot use existing Chrome sessions: EasyClaw Google sign-in fails, and user profile attach fails with spawn npx ENOENT [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
openclaw/openclaw#70529Fetched 2026-04-24 05:56:52
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

On Genspark Claw Desktop, two paths to use existing Chrome sessions both fail: (1) EasyClaw Browser Relay extension Google sign-in returns an error after OAuth callback, (2) built-in user profile attach fails with spawn npx ENOENT because Desktop bundles node but not npm/npx.

Error Message

On Genspark Claw Desktop, two paths to use existing Chrome sessions both fail: (1) EasyClaw Browser Relay extension Google sign-in returns an error after OAuth callback, (2) built-in user profile attach fails with spawn npx ENOENT because Desktop bundles node but not npm/npx. 4. Google OAuth completes → error page on callback 3. Fails with: Chrome MCP existing-session attach failed — Error: spawn npx ENOENT EasyClaw: Google OAuth callback returns error page, extension stays "Not connected", no tabs visible to Gateway.

Root Cause

On Genspark Claw Desktop, two paths to use existing Chrome sessions both fail: (1) EasyClaw Browser Relay extension Google sign-in returns an error after OAuth callback, (2) built-in user profile attach fails with spawn npx ENOENT because Desktop bundles node but not npm/npx.

Fix Action

Fix / Workaround

Workaround: Using the managed openclaw browser profile with manual Google login inside that browser works fine.

RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

On Genspark Claw Desktop, two paths to use existing Chrome sessions both fail: (1) EasyClaw Browser Relay extension Google sign-in returns an error after OAuth callback, (2) built-in user profile attach fails with spawn npx ENOENT because Desktop bundles node but not npm/npx.

Steps to reproduce

Repro 1: EasyClaw extension

  1. Install "OpenClaw Browser Relay — EasyClaw" Chrome extension
  2. Click extension icon → shows "Not connected" + "Sign in"
  3. Click "Sign in" → "Continue with Google"
  4. Google OAuth completes → error page on callback

Repro 2: user profile

  1. Open Chrome 147, enable remote debugging at chrome://inspect/#remote-debugging
  2. Use browser tool with profile="user"
  3. Fails with: Chrome MCP existing-session attach failed — Error: spawn npx ENOENT

Expected behavior

OpenClaw should attach to the running Chrome session and expose tabs for agent control, as documented at https://docs.openclaw.ai/tools/browser

Actual behavior

EasyClaw: Google OAuth callback returns error page, extension stays "Not connected", no tabs visible to Gateway.

user profile: spawn npx ENOENT — Desktop bundle at ~/Library/Application Support/Genspark Claw/bin/ contains only node and electron-compat.js, no npm or npx.

OpenClaw version

Genspark Claw Desktop v0.1.655

Operating system

macOS 15.7.4 (Apple Silicon)

Install method

Genspark Claw Desktop (mac app)

Model

genspark-llm-proxy/claude-opus-4-6-1m (not model-specific, browser tool issue)

Provider / routing chain

genspark-llm-proxy (N/A — this is a browser/tooling bug, not provider-specific)

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

  • Affected: All Genspark Claw Desktop users wanting to use existing Chrome sessions
  • Severity: High — blocks the documented user browser profile workflow entirely
  • Frequency: 100% reproducible
  • Consequence: Cannot use existing Chrome sessions, bookmarks, cookies, or login state with OpenClaw from Desktop, which is a significant UX gap compared to competing solutions

Additional information

Workaround: Using the managed openclaw browser profile with manual Google login inside that browser works fine.

Desktop bundle path ~/Library/Application Support/Genspark Claw/bin/ contains only node and electron-compat.js — no npm or npx. The user profile's existing-session driver tries to spawn npx chrome-devtools-mcp@latest --autoConnect which fails.

Chrome version: 147.0.7727.102 Also discussed on OpenClaw Discord #help channel.

extent analysis

TL;DR

The issue can be addressed by ensuring the presence of npm and npx in the Genspark Claw Desktop bundle to facilitate the use of existing Chrome sessions.

Guidance

  • Verify that npm and npx are installed and accessible in the system's PATH, as the error spawn npx ENOENT suggests their absence.
  • Consider modifying the user profile's existing-session driver to use a direct path to node for executing the chrome-devtools-mcp package, bypassing the need for npx.
  • Investigate why the Desktop bundle only includes node and electron-compat.js but not npm or npx, and address this discrepancy.
  • As a temporary workaround, use the managed openclaw browser profile with manual Google login, as mentioned in the additional information section.

Example

No code snippet is provided due to the lack of specific implementation details in the issue description.

Notes

The solution may involve updating the Genspark Claw Desktop bundle to include npm and npx or modifying the application to handle their absence. The exact steps may depend on the internal implementation of the Desktop application and its dependencies.

Recommendation

Apply workaround: Using the managed openclaw browser profile with manual Google login until the npm and npx issue is resolved, as it provides a functional, albeit temporary, solution to the problem.

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…

FAQ

Expected behavior

OpenClaw should attach to the running Chrome session and expose tabs for agent control, as documented at https://docs.openclaw.ai/tools/browser

Still need to ship something?

×6

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

Back to top recommendations

TRENDING