fix(tools): return browser timeout as observation#2455
Draft
Conversation
Catch browser action timeouts at the browser tool boundary so a hung browser call returns a BrowserObservation error instead of bubbling up as a fatal conversation TimeoutError. Also format empty browser exceptions more clearly to avoid blank 'Browser operation failed:' messages. Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Python API breakage checks — ✅ PASSEDResult: ✅ PASSED |
Contributor
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
neubig
pushed a commit
that referenced
this pull request
Mar 15, 2026
Bump openhands-agent-server from 1.14.0 to 1.15.0 so the REST API breakage workflow reflects the current breaking API surface already present on main. This is intentionally separate from PR #2455, whose failing REST API check is unrelated to the browser timeout fix. Co-authored-by: openhands <openhands@all-hands.dev>
5 tasks
Contributor
Author
|
@OpenHands test this life by creating a web service that does not respond in the allotted time and creating an example following the examples folder that asks the agent to query this web service. Run the example before and after this fix and demonstrate that it's better. Fix any failing tests as well |
|
I'm on it! neubig can track my progress at all-hands.dev |
Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Author
|
Addressed in 4010efb. What changed:
Validation:
Before/after demo using the new example:
I also checked local targeted tests after the rebase; the new regression coverage is green. |
|
Done — the new changes since the last summary are complete and pushed. Checklist:
Conciseness check:
Validation run:
Pushed commit:
PR update comment: |
Contributor
Coverage Report •
|
||||||||||||||||||||
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.
Summary
BrowserToolExecutor.__call__and return a normalBrowserObservationerror instead of bubbling up a fatal conversationTimeoutErrorBrowser operation failed:messagesChecklist
Agent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.13-nodejs22golang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:3054c30-pythonRun
All tags pushed for this build
About Multi-Architecture Support
3054c30-python) is a multi-arch manifest supporting both amd64 and arm643054c30-python-amd64) are also available if needed