Repository navigation
fix(browser): preserve response-body timeout diagnostics - #129803
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 26, 2026 03:06
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
openclaw browser responsebodygave 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 1was 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
strictandnoImplicitReturns, loading more than 10,000 genuine transitive source files; formatting, extension oxlint, max-lines and assertion-safety ratchets, and changed-lane classification pass.