惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
J
Java Code Geeks
V
V2EX
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
博客园 - Franky
爱范儿
爱范儿
T
Tailwind CSS Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
博客园_首页
B
Blog RSS Feed
博客园 - 司徒正美
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(browser): clarify Browserless CDP attach handling · o...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -297,6 +297,9 @@ instead, and remote CDP profiles use the browser behind `cdpUrl`.

297297

- **Remote control (node host):** run a node host on the machine that has the browser; the Gateway proxies browser actions to it.

298298

- **Remote CDP:** set `browser.profiles.<name>.cdpUrl` (or `browser.cdpUrl`) to

299299

attach to a remote Chromium-based browser. In this case, OpenClaw will not launch a local browser.

300+

- For externally managed CDP services on loopback (for example Browserless in

301+

Docker published to `127.0.0.1`), also set `attachOnly: true`. Loopback CDP

302+

without `attachOnly` is treated as a local OpenClaw-managed browser profile.

300303

- `headless` only affects local managed profiles that OpenClaw launches. It does not restart or change existing-session or remote CDP browsers.

301304

- `executablePath` follows the same local managed profile rule. Changing it on a

302305

running local managed profile marks that profile for restart/reconcile so the

@@ -370,6 +373,39 @@ Notes:

370373

`wss://` for a direct CDP connection or keep the HTTPS URL and let OpenClaw

371374

discover `/json/version`.

372375376+

### Browserless Docker on the same host

377+378+

When Browserless is self-hosted in Docker and OpenClaw runs on the host, treat

379+

Browserless as an externally managed CDP service:

380+381+

```json5

382+

{

383+

browser: {

384+

enabled: true,

385+

defaultProfile: "browserless",

386+

profiles: {

387+

browserless: {

388+

cdpUrl: "ws://127.0.0.1:3000",

389+

attachOnly: true,

390+

color: "#00AA00",

391+

},

392+

},

393+

},

394+

}

395+

```

396+397+

The address in `browser.profiles.browserless.cdpUrl` must be reachable from the

398+

OpenClaw process. Browserless must also advertise a matching reachable endpoint;

399+

set Browserless `EXTERNAL` to that same public-to-OpenClaw WebSocket base, such

400+

as `ws://127.0.0.1:3000`, `ws://browserless:3000`, or a stable private Docker

401+

network address. If `/json/version` returns `webSocketDebuggerUrl` pointing at

402+

an address OpenClaw cannot reach, CDP HTTP can look healthy while the WebSocket

403+

attach still fails.

404+405+

Do not leave `attachOnly` unset for a loopback Browserless profile. Without

406+

`attachOnly`, OpenClaw treats the loopback port as a local managed browser

407+

profile and may report that the port is in use but not owned by OpenClaw.

408+373409

## Direct WebSocket CDP providers

374410375411

Some hosted browser services expose a **direct WebSocket** endpoint rather than

@@ -388,10 +424,13 @@ CDP URL shapes and picks the right connection strategy automatically:

388424

[Browserbase](https://www.browserbase.com)). OpenClaw tries HTTP

389425

`/json/version` discovery first (normalising the scheme to `http`/`https`);

390426

if discovery returns a `webSocketDebuggerUrl` it is used, otherwise OpenClaw

391-

falls back to a direct WebSocket handshake at the bare root. This lets a

392-

bare `ws://` pointed at a local Chrome still connect, since Chrome only

393-

accepts WebSocket upgrades on the specific per-target path from

394-

`/json/version`.

427+

falls back to a direct WebSocket handshake at the bare root. If the advertised

428+

WebSocket endpoint rejects the CDP handshake but the configured bare root

429+

accepts it, OpenClaw falls back to that root as well. This lets a bare `ws://`

430+

pointed at a local Chrome still connect, since Chrome only accepts WebSocket

431+

upgrades on the specific per-target path from `/json/version`, while hosted

432+

providers can still use their root WebSocket endpoint when their discovery

433+

endpoint advertises a short-lived URL that is not suitable for Playwright CDP.

395434396435

### Browserbase

397436

@@ -654,6 +693,8 @@ Common examples:

654693

- CDP startup or readiness failure:

655694

- `Chrome CDP websocket for profile "openclaw" is not reachable after start`

656695

- `Remote CDP for profile "<name>" is not reachable at <cdpUrl>`

696+

- `Port <port> is in use for profile "<name>" but not by openclaw` when a

697+

loopback external CDP service is configured without `attachOnly: true`

657698

- Navigation SSRF block:

658699

- `open`, `navigate`, snapshot, or tab-opening flows fail with a browser/network policy error while `start` and `tabs` still work

659700