Repository navigation
Description
I'm an AI agent (Claude Code) helping Engel Nyst (@enyst) with project maintenance.
The verify-sdk feature map (#5750) found this bug while driving the SDK through its public API. The map records it as a known failure, and the command under Steps to Reproduce shows it on main.
Is there an existing issue for the same bug?
- I have searched existing issues and this is not a duplicate.
Bug Description
With action_timeout_seconds 12, a page whose script never yields times out, and the third call resets the browser session. The reset's cleanup (run_async(self.cleanup, timeout=5.0)) does not end the hung Chromium: the next calls time out again, and the Chromium process is still running after conversation.close() and after the program exits, re-parented to PID 1. Four of four hung-page runs left one behind. In a run with a 40 s timeout, the first call after the reset failed and the second worked.
Expected Behavior
After the reset the browser restarts on the next action, and closing the conversation leaves no Chromium behind (chrome_processes_after_close 0).
Actual Behavior
Both calls after the reset time out again after 12 s, and one Chromium outlives the program.
Steps to Reproduce
From a checkout of main (uv sync), with the verify-sdk tools on the path:
export PATH="$PWD/.agents/skills/verify-sdk/scripts:$PATH"
sdk-map run --file S15 --only S15.session-recoveryThat runs this recipe from the map (each control-sdk call runs a short program in its own HOME, persistence and workspace; the pages are served locally):
export SDK_VERIFY_RUN=$(control-sdk new --field run)
control-sdk program S15/browser_setup --arg hang --timeout 400 \
--check steps.allowed.is_error eq false \
--check steps.hang1.is_error eq true --check steps.hang1.text contains "timed out after 12 seconds" \
--check steps.hang2.text contains "timed out after 12 seconds" \
--check steps.hang3.text contains "timed out after 30 seconds" \
--check steps.hang3.text contains "The browser session has been reset" --check reset_warning eq true \
--check steps.recovered.is_error eq false --check steps.recovered_state.text contains page2.html \
--check chrome_processes_after_close eq 0Acceptance Criteria
- The reset kills the hung browser process (the whole process group if needed).
- The first action after a reset works.
-
conversation.close()leaves no Chromium processes. - The
S15.session-recoverybullet in.agents/skills/verify-sdk/references/feature-map/passes and its known-failure note is removed.
Installation Method
uv sync in a checkout of main
OpenHands AI triage
The following comments and acceptance criteria were added by the OpenHands AI agent.
Triage
The third-consecutive-timeout reset in openhands-tools/openhands/tools/browser_use/impl.py only flips _initialized = False; its 5 s best-effort cleanup relies solely on session.kill() via _close_all_sessions(), which cannot end a wedged Chromium, so the process is re-parented to PID 1 and survives conversation.close() and program exit (4/4 hung-page runs). The first action after the reset also does not reliably work. Scope is the BrowserToolExecutor reset path in openhands-tools/openhands/tools/browser_use/impl.py: force-kill the hung Chromium (process group if needed) on reset, then rebuild so the next action starts a working browser. Non-goals: no timeout-configuration API changes; no new reset-policy knobs; no changes to the S15.session-recovery timeout/reset-count behavior that already passes; no rework of _close_all_sessions() itself.
Acceptance Criteria
- After three consecutive timed-out actions against a hung page, the executor no longer has a live Chromium process before the next action runs (no process re-parented to PID 1 survives the reset).
- The first action after a reset succeeds and returns a non-error observation from a normal page; in the S15 recipe this is
steps.recovered.is_error eq falsewithsteps.recovered_state.textcontainingpage2.html. - After the reset and a subsequent
conversation.close(), the run leaves no Chromium processes (chrome_processes_after_close eq 0). - The fix does not regress the already-passing reset timing behaviors covered by
tests/tools/browser_use/test_browser_executor.py(test_issue_2412_consecutive_failures_reset_session,test_issue_2412_success_resets_failure_counter,test_issue_2412_action_errors_do_not_trigger_reset,test_issue_2412_degraded_timeout_after_failures), which must keep passing. - The process-leak criteria are validated by executing a real hung-page Chromium run (not a mocked executor), per the repository's non-mock validation requirement for process cleanup.
- The
S15.session-recoverybullet in.agents/skills/verify-sdk/references/feature-map/S15-browser.mdpasses and its known-failure note is removed.
Activity
docs(verify-sdk): S08 resume prose names the persisted agent; S15 #6650…
Merge main into map maintenance 2026-11-12