Skip to content

fix(browser): honor explicit navigation timeouts across browser drivers - #119654

Merged
steipete merged 2 commits into
mainfrom
codex/autoqa-browser-navigation-timeouts-20260805
Aug 5, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/autoqa-browser-navigation-timeouts-20260805

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

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 (actual setTimeout watchdog). No persisted model, schema, migration, or configuration is changed; reported serialized-state risk describes transient HTTP JSON only.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 5, 2026
@steipete
steipete marked this pull request as ready for review August 5, 2026 15:00
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 12:14 PM ET / 16:14 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 3 items remain

The 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
Reviewed head: c63cc242f609afdd4b9a76b40b6d4976a2f26651
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a well-scoped owner-boundary repair with strong focused coverage; exact-head refresh remains the merge step.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body reports real Chromium and Gateway evidence, though artifacts were not independently available.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body reports real Chromium and Gateway evidence, though artifacts were not independently available.
Evidence reviewed 5 items Current-main gap: Current main still omits navigation timeout forwarding from the client and uses separate Playwright and Chrome MCP timeout handling, so the central behavior is not already implemented.
Canonical owner-boundary repair: The PR head centralizes the 1,000–120,000 ms navigation contract and applies it at the tool, route, and both drivers, resolving the prior divergent cap.
Boundary coverage: Focused tests cover client transport grace, node/Gateway watchdogs, route dispatch to each driver, and clamping in both driver helpers.
Findings None None.
Security None None.

How this fits together

Browser 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
Loading

Decision needed

Question Recommendation
Should this maintainer-owned browser timeout repair merge once the current-base refresh and exact-head required checks complete? Merge after exact-head validation: Refresh the branch against current main, obtain one exact-head review and required green checks, then merge the canonical cross-driver repair.

Why: The protected maintainer label requires explicit maintainer handling even though no patch defect remains.

Before merge

  • Resolve merge risk (P1) - The PR is behind current main; validate the resulting exact head after its current-base refresh.
  • Resolve merge risk (P1) - Installed Playwright and MCP SDK source could not be inspected because dependencies and network access were unavailable, so dependency-contract confirmation remains with the existing type and CI gates.
Agent review details

Security

None.

PR surface

Source +27, Tests +311. Total +338 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 6 38 11 +27
Tests 5 315 4 +311
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 353 15 +338

Review metrics

Metric Value Why it matters
Production versus test delta production +38/-11 (net +27); tests +315/-4 (net +311) The modest production growth creates one shared ownership boundary, while most of the change is cross-boundary regression coverage.

Stored data model

Persistent data-model change detected: serialized state: extensions/browser/src/browser/client-actions-core.navigation.test.ts, serialized state: extensions/browser/src/browser/client-actions-core.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Refresh and validate the merge result (recommended)
    Rebase or otherwise refresh against current main, then require exact-head checks and one review refresh because browser clients may rely on timeout behavior.
  2. Pause for contract inspection
    Defer merge until the installed MCP and Playwright timeout contracts can be directly inspected if maintainers require that additional dependency evidence.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Refresh against current main, require exact-head checks, and confirm both drivers retain the 1,000–120,000 ms navigation contract with watchdog grace.

Technical review

Best 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.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body reports real Chromium and Gateway evidence, though artifacts were not independently available.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs explicit browser-navigation timeout behavior with a bounded but user-visible automation impact.
  • merge-risk: 🚨 compatibility: Existing browser automation callers may observe newly consistent clamping and propagated operation budgets across drivers.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body reports real Chromium and Gateway evidence, though artifacts were not independently available.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the current timeout/watchdog policy commit and the proposed follow-up repair. (role: recent timeout-policy contributor; confidence: high; commits: 84a52b35344d, c63cc242f609; files: extensions/browser/src/browser/act-policy.ts, extensions/browser/src/browser/client-actions-core.ts)
  • vincentkoc: Authored earlier browser route navigation-policy sharing work in the affected path. (role: route-policy contributor; confidence: medium; commits: 6c309b9883a7; files: extensions/browser/src/browser/routes/agent.snapshot.ts)
  • g515hoshino: Authored earlier timeout propagation work in the browser subsystem. (role: adjacent timeout contributor; confidence: low; commits: 069c7b87eb67; files: extensions/browser/src/browser)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh against current main and obtain exact-head required-check and review confirmation.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-05T15:16:51.742Z sha 9139680 :: needs changes before merge. :: [P2] Align navigation timeout limits across both drivers

@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 5, 2026
@steipete
steipete merged commit 21b6478 into main Aug 5, 2026
133 checks passed
@steipete
steipete deleted the codex/autoqa-browser-navigation-timeouts-20260805 branch August 5, 2026 16:44
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 5, 2026
…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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
…rs (openclaw#119654)

* fix(browser): propagate bounded navigation timeouts end to end

* fix(browser): share shipped navigation limits across all drivers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant