Skip to content

fix(browser): preserve response-body timeout diagnostics - #129803

Merged
steipete merged 1 commit into
mainfrom
codex/qa-browser-responsebody-timeout-grace
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-browser-responsebody-timeout-grace

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

openclaw browser responsebody gave the outer Gateway watchdog exactly the same deadline as the browser operation. A missing response could therefore produce a generic transport timeout instead of the actionable browser-owned message explaining how to inspect recent network requests. --timeout-ms 1 was particularly deterministic: the Gateway expired after 1 ms even though Playwright normalizes the operation to a minimum of 500 ms.

Why This Change Was Made

The existing, saturating five-second browser transport-grace policy already handled input actions and downloads, but lived inside the input-only helper. Move that existing policy into the generic Browser CLI request owner, migrate its existing input/download callers, and use it for response-body observation. This preserves independently lazy observation and input command groups, keeps the original operation timeout unchanged, and avoids adding a second timeout policy or fallback.

User Impact

Response-body waits now retain their useful browser-owned failure diagnostics without changing CLI flags, operation deadlines, configuration, authentication, or Gateway protocol. Omitted, 1 ms, and 30,000 ms operation timeouts respectively receive 25,000 ms, 5,001 ms, and 35,000 ms outer transport budgets. Existing uploads and downloads retain exactly one five-second grace period. Production code shrinks by one line.

Evidence

  • Captured three failing real-Commander regressions against unchanged production: outer defaults were 20,000 instead of 25,000; 1 instead of 5,001; and 30,000 instead of 35,000. All three pass after the owner-boundary refactor while preserving the original inner values.
  • Eleven focused Browser CLI, input/download sibling, lazy-loading, Gateway timeout, and Playwright suites pass: 114 tests.
  • Existing upload/download coverage now asserts the exact one-time grace for explicit, signed/zero-padded, and default deadlines.
  • Each changed production and test file passes its actual strict extension TypeScript project with strict and noImplicitReturns, loading more than 10,000 genuine transitive source files; formatting, extension oxlint, max-lines and assertion-safety ratchets, and changed-lane classification pass.
  • Independent owner/sibling review reports no findings; fresh authenticated structured Codex review is clean. Production LOC: +16/-17 (net -1); tests: +38/-20.
  • Real Commander parsing and the Browser/Gateway/Playwright owner suites provide deterministic local boundary proof; the operator's running managed Gateway and browser were deliberately left untouched.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 26, 2026 03:06
@steipete
steipete merged commit 4b0f712 into main Aug 26, 2026
162 checks passed
@steipete
steipete deleted the codex/qa-browser-responsebody-timeout-grace branch August 26, 2026 03:14
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant