Skip to content

fix(browser): skip port check when attachOnly is enabled#20611

Closed
unblockedgamesstudio wants to merge 3 commits intoopenclaw:mainfrom
unblockedgamesstudio:main
Closed

fix(browser): skip port check when attachOnly is enabled#20611
unblockedgamesstudio wants to merge 3 commits intoopenclaw:mainfrom
unblockedgamesstudio:main

Conversation

@unblockedgamesstudio
Copy link

@unblockedgamesstudio unblockedgamesstudio commented Feb 19, 2026

When using attachOnly: true with localhost CDP URL (e.g., behind Nginx reverse proxy), OpenClaw was checking port availability and failing even though the user doesn't want to launch a local browser.

This fix adds attachOnly to ResolvedBrowserProfile and skips the port availability check when attachOnly is true.

Fixes #20595


Testing

  • untested
  • lightly tested (code review + build)
  • fully tested

Note

This is an AI-assisted PR (built with OpenClaw). The fix is minimal (6 lines changed) and builds successfully. However, full testing requires setting up the Nginx + Cloudflare Tunnel environment described in the issue.

When using attachOnly: true with localhost CDP URL (e.g., behind
Nginx reverse proxy), OpenClaw was checking port availability and
failing even though the user doesn't want to launch a local browser.

This fix adds attachOnly to ResolvedBrowserProfile and skips the
port availability check when attachOnly is true.

Fixes openclaw#20595
@unblockedgamesstudio unblockedgamesstudio changed the title fix(browser): skip port check when attachOnly is enabled [WIP] fix(browser): skip port check when attachOnly is enabled Feb 19, 2026
@unblockedgamesstudio unblockedgamesstudio changed the title [WIP] fix(browser): skip port check when attachOnly is enabled fix(browser): skip port check when attachOnly is enabled Feb 19, 2026
@openclaw-barnacle
Copy link

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@vincentkoc
Copy link
Member

Fixed by #31429

@vincentkoc vincentkoc closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: XS stale Marked as stale due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: attachOnly + localhost CDP fails when port is in use by proxy

2 participants