Skip to content

browser.cdpUrl config ignored — tool still looks for DevToolsActivePort file #48042

Description

@Max-Resilient

Bug

When browser.cdpUrl is set in config (e.g. http://localhost:9222), the browser tool ignores it and still looks for the DevToolsActivePort file at the default Chrome profile path.

Config

{
  "browser": {
    "enabled": true,
    "cdpUrl": "http://localhost:9222",
    "attachOnly": false,
    "defaultProfile": "user"
  }
}

Expected behavior

When cdpUrl is set, connect directly to that URL without checking for DevToolsActivePort.

Actual behavior

Error: Could not find DevToolsActivePort for chrome at /Users/clawdbot/Library/Application Support/Google/Chrome/DevToolsActivePort

Context

  • Chrome v145 running with --remote-debugging-port=9222 and a custom --user-data-dir
  • Port 9222 responds correctly: curl http://localhost:9222/json/version returns valid JSON
  • Chrome does NOT write DevToolsActivePort to the custom user-data-dir
  • OpenClaw v2026.3.13
  • macOS 15.3 (arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions