Repository navigation
fix(browser): honor explicit navigation timeouts across browser drivers - #119654
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 12:14 PM ET / 16:14 UTC. ClawSweeper reviewWhat this changesThe PR propagates explicit browser-navigation timeouts through the tool, transport, route, Playwright, and Chrome MCP drivers while applying the existing 1–120 second navigation bound. Merge readinessThe prior cross-driver timeout finding is resolved: the exact head uses one navigation policy through every owner path. This maintainer-owned, protected PR remains necessary because current main still has split timeout handling; merge after current-base refresh and exact-head checks. Priority: P2 Review scores
Verification
How this fits togetherBrowser navigation starts at the agent browser tool, crosses a local client and authenticated browser route, then reaches either Playwright or Chrome MCP. The timeout must remain the same operation budget at each boundary while outer transports retain watchdog grace. flowchart LR
A[Agent browser request] --> B[Browser tool]
B --> C[Client and node transport]
C --> D[Browser HTTP route]
D --> E[Shared navigation timeout policy]
E --> F[Playwright driver]
E --> G[Chrome MCP driver]
F --> H[Navigation result]
G --> H
Decision needed
Why: The protected maintainer label requires explicit maintainer handling even though no patch defect remains. Before merge
Agent review detailsSecurityNone. PR surfaceSource +27, Tests +311. Total +338 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Land one canonical bounded navigation-timeout policy after refreshing against main and confirming the resulting exact head passes required checks. Do we have a high-confidence way to reproduce the issue? Yes—current main clearly drops the explicit navigation timeout at the client boundary and uses separate driver policies; the focused route and driver tests identify the reproducible path. Is this the best way to solve the issue? Yes—the shared browser-owner helper is preferable to per-driver caps because it preserves one documented operation budget while keeping transport watchdog grace separate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 36dbbd72ed8c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…cope * origin/main: (70 commits) fix(clickclack): preserve MIME extension for unnamed uploads (openclaw#119646) fix(memory): keep post-ready RPCs responsive (openclaw#119710) fix(browser): preserve locale, timezone, and device overrides (openclaw#119695) fix(agents): stop messaging dedupe from dropping final replies that quote a short tool send (openclaw#118178) test(agents): batch code mode budget proof (openclaw#119699) fix(memory): keep gateway RPCs responsive during startup (openclaw#119676) improve(ui): trail transient session status beside row actions (openclaw#119560) refactor(msteams): consolidate channel action target resolution (openclaw#119632) fix: tail context answers the current user message (openclaw#117364) fix(whatsapp): exercise descriptor-safe credential persistence (openclaw#119621) fix(diagnostics-otel): route OTLP endpoints by signal (openclaw#101655) refactor(skills): consolidate workshop transcript and record normalization (openclaw#119643) fix(video): harden DashScope task and media lifecycle (openclaw#117303) refactor(transcripts): consolidate persistence and export ownership (openclaw#119634) fix: preserve ClickClack discussion state contracts (openclaw#118851) fix(matrix): retire shared E2EE clients safely (openclaw#119570) refactor(cron): unify catch-up persistence and payload encoding (openclaw#119636) refactor(ui): centralize composer attachment and capability controls (openclaw#119650) refactor(daemon): consolidate managed service lifecycle ownership (openclaw#119647) fix(browser): honor explicit navigation timeouts across browser drivers (openclaw#119654) ...
…rs (openclaw#119654) * fix(browser): propagate bounded navigation timeouts end to end * fix(browser): share shipped navigation limits across all drivers
What Problem This Solves
Fixes an issue where browser navigation with an explicitly requested longer timeout could still abort at the default transport deadline, and oversized timeouts reached driver timers without the canonical safe cap.
Why This Change Was Made
Carry the existing navigation timeout through its actual tool, host/node client, authenticated HTTP route, Playwright, and Chrome MCP owners; normalize all navigation through the already-shipped 1,000–120,000 ms contract, preserve the 20,000 ms default, and keep +5,000/+10,000 ms watchdog grace.
User Impact
Longer browser navigations honor the requested operation budget, invalid values fail clearly, and oversized values are safely bounded for both browser drivers.
Evidence
Original integrated Testbox proof passed 187 browser-owner tests, five real Chromium plugin E2E cases, the full changed gate, and the private packaged build. Exact reviewer-finding RED then reproduced 18 failures across real Playwright and Chrome MCP helpers, host/node producers, authenticated HTTP routes, and nested watchdogs. The repaired owner matrix passed all 298 focused tests, including minimum 1,000 ms, default 20,000 ms, normal 45,000 ms, 180,000 ms and extreme values clamped to the shipped 120,000 ms cap, plus 125,000/130,000 ms watchdog grace. Blacksmith Testbox had an organization-wide 16-vCPU capacity outage; the documented trusted-source fallback used the canonical checkout's existing dependencies without installing any.
Integrated trusted-Testbox proof: 609 tests passed, including five real Chromium extension E2E cases; complete production/test typechecks, lint, plugin-boundary/generated-contract checks, private production build, and four actual ephemeral-Gateway scenarios all passed.
Owner/risk review: No new config, provider, auth, public protocol, SDK, or dependency surface; production delta +27 lines for end-to-end timeout ownership and one canonical shipped navigation budget; generic timer and non-navigation behavior remain unchanged.
Exact-head review resolution
The existing tagged-release Playwright owner already enforces a 1–120 second navigation policy; Playwright itself accepts arbitrary explicit timeouts, while the MCP SDK arms a real JavaScript timer. The fix therefore preserves the shipped OpenClaw ceiling and shares it across both drivers instead of expanding navigation into multi-day timers or changing unrelated generic timer contracts. All prior ClawSweeper rank-up moves are addressed by the actual 180-second/extreme cross-driver and watchdog regression matrix.
Current-main refresh rank-up: Intentionally skipped: the canonical merge-base-to-current-main comparison has no overlap with any changed browser owner; the current exact head already has a clean automated review and passing required CI. Repository policy treats unrelated behind-main drift as advisory, and the canonical maintainer merge verifier will recheck overlap. Rebasing solely to refresh unrelated history would invalidate already-verified exact-head CI and review without improving the repair.
Dependency contract proof: Directly inspected installed
playwright-core/lib/coreBundle.js(explicit navigation timeout forwarded unchanged) and@modelcontextprotocol/sdk/dist/esm/shared/protocol.js(actualsetTimeoutwatchdog). No persisted model, schema, migration, or configuration is changed; reported serialized-state risk describes transient HTTP JSON only.