Skip to content

Conversation

@xingyaoww
Copy link
Collaborator

  • This change is worth documenting at https://docs.all-hands.dev/
  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

End-user friendly description of the problem this fixes or functionality this introduces.


Summarize what the PR does, explaining any non-trivial design decisions.


Link of any specific issues this addresses:

adityasoni9998 and others added 30 commits January 30, 2025 13:46
…sary (#6618)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
…dates (#6617)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: amanape <83104063+amanape@users.noreply.github.com>
Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Ray Myers <ray.myers@gmail.com>
_SEARCH_ENGINE_DESCRIPTION = """Execute a web search query (similar to Google search).
You MUST use this tool as a search engine and find URLs of webpages that are relevant to the search query.
NOTE: Do NOT use the browser tool to search using Google or Bing since you will be blocked by CAPTCHAs.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NOTE: Do NOT use the browser tool to search using Google or Bing since you will be blocked by CAPTCHAs.
NOTE: Do NOT use the search engine tool to search using Google or Bing since you will be blocked by CAPTCHAs.

@xingyaoww
Copy link
Collaborator Author

Blocked by: All-Hands-AI/openhands-aci#126

obs, reward, terminated, truncated, info = env.step(action)
try:
obs, reward, terminated, truncated, info = env.step(action)
except Exception as e:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this error handling code serve any special purpose? I think BrowserGym's step implementation already has it own error handling: https://github.com/ServiceNow/BrowserGym/blob/6bc4c5156d32d7c6598ea376badc5ff79030fe5b/browsergym/core/src/browsergym/core/env.py#L458-L462

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryanhoangt @xingyaoww

This addition is intentional and not just for extra safety. Firstly, there are some cases in browsergym 0.10.2 wherein the step function raises an error (I guess these don't happen for version 0.13.3) especially when there is an error during processing of AXTree (see here - an error saying Cannot mark child frame without bid)

Also it is better to have this line in the code - the browser_process function runs inside a separate process, and if it crashes/exits due to some reason, the main OpenHands process running the step function (the client side) will always face timeouts, and all subsequent browsing actions will fail since the server side (browser_process) has exited silently.

@github-actions
Copy link
Contributor

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Inactive for 40 days label Jul 15, 2025
@xingyaoww
Copy link
Collaborator Author

These are already merged in separate PRs. Close this.

@xingyaoww xingyaoww closed this Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Inactive for 40 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.