mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:50:44 +00:00
docs(browser): document local startup timeout bounds (#71672)
* docs(browser): document local startup timeout bounds The new browser.localLaunchTimeoutMs and browser.localCdpReadyTimeoutMs options are clamped to MAX_BROWSER_STARTUP_TIMEOUT_MS (120000 ms) by normalizeStartupTimeoutMs in extensions/browser/src/browser/config.ts, and zero/negative/non-finite values fall back to the defaults. Without this in the configuration reference, users setting a higher value see no error and silently get the 120 s ceiling, or set 0 expecting 'no timeout' and silently get the default. * docs(browser): clarify startup timeout validation --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
@@ -280,7 +280,8 @@ See [Plugins](/tools/plugin).
|
||||
- Local managed profiles use `browser.localLaunchTimeoutMs` for Chrome CDP HTTP
|
||||
discovery after process start and `browser.localCdpReadyTimeoutMs` for
|
||||
post-launch CDP websocket readiness. Raise them on slower hosts where Chrome
|
||||
starts successfully but readiness checks race startup.
|
||||
starts successfully but readiness checks race startup. Both values must be
|
||||
positive integers up to `120000` ms; invalid config values are rejected.
|
||||
- Auto-detect order: default browser if Chromium-based → Chrome → Brave → Edge → Chromium → Chrome Canary.
|
||||
- `browser.executablePath` accepts `~` for your OS home directory.
|
||||
- Control service: loopback only (port derived from `gateway.port`, default `18791`).
|
||||
|
||||
@@ -140,8 +140,8 @@ curl -s http://127.0.0.1:18791/tabs
|
||||
On Raspberry Pi, older VPS hosts, or slow storage, raise
|
||||
`browser.localLaunchTimeoutMs` when Chrome needs more time to expose its CDP HTTP
|
||||
endpoint. Raise `browser.localCdpReadyTimeoutMs` when launch succeeds but
|
||||
`openclaw browser start` still reports `not reachable after start`. Values are
|
||||
capped at 120000 ms.
|
||||
`openclaw browser start` still reports `not reachable after start`. Values must
|
||||
be positive integers up to `120000` ms; invalid config values are rejected.
|
||||
|
||||
### Problem: "No Chrome tabs found for profile=\"user\""
|
||||
|
||||
|
||||
@@ -200,7 +200,8 @@ Browser settings live in `~/.openclaw/openclaw.json`.
|
||||
process to expose its CDP HTTP endpoint. `localCdpReadyTimeoutMs` is the
|
||||
follow-up budget for CDP websocket readiness after the process is discovered.
|
||||
Raise these on Raspberry Pi, low-end VPS, or older hardware where Chromium
|
||||
starts slowly. Values are capped at 120000 ms.
|
||||
starts slowly. Values must be positive integers up to `120000` ms; invalid
|
||||
config values are rejected.
|
||||
- `actionTimeoutMs` is the default budget for browser `act` requests when the caller does not pass `timeoutMs`. The client transport adds a small slack window so long waits can finish instead of timing out at the HTTP boundary.
|
||||
- `tabCleanup` is best-effort cleanup for tabs opened by primary-agent browser sessions. Subagent, cron, and ACP lifecycle cleanup still closes their explicit tracked tabs at session end; primary sessions keep active tabs reusable, then close idle or excess tracked tabs in the background.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user