From 912a497ce2be4d4469154d4b4f81270ab65cb34d Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 3 Sep 2026 14:17:11 -0700 Subject: [PATCH] =?UTF-8?q?simplify(compat):=20tools/browser=5Ftool=20?= =?UTF-8?q?=E2=80=94=20repoint=20run=5Fagent=20cleanup=5Fbrowser=20+=20cha?= =?UTF-8?q?t=5Fcompletion=5Fhelpers=20=5Fis=5Fheaded=5Fmode=20to=20the=20d?= =?UTF-8?q?efining=20browser=5Ftool=5F*=20siblings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/chat_completion_helpers.py | 2 +- run_agent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/chat_completion_helpers.py b/agent/chat_completion_helpers.py index 67425f6647..f4c24e9b6d 100644 --- a/agent/chat_completion_helpers.py +++ b/agent/chat_completion_helpers.py @@ -2335,7 +2335,7 @@ def cleanup_task_resources(agent, task_id: str) -> None: and ``cleanup_browser`` in headed mode (the inactivity reaper handles idle sessions).""" def _headed() -> bool: try: - from tools.browser_tool import _is_headed_mode + from tools.browser_tool_cloud import _is_headed_mode return _is_headed_mode() except Exception: return bool(os.environ.get("AGENT_BROWSER_HEADED")) diff --git a/run_agent.py b/run_agent.py index 1cc624a452..f6d31bc8e2 100644 --- a/run_agent.py +++ b/run_agent.py @@ -102,7 +102,7 @@ if not _loaded_env_paths: from model_tools import get_toolset_for_tool from tools.terminal_tool_lifecycle import cleanup_vm, get_active_env from tools.interrupt import set_interrupt as _set_interrupt -from tools.browser_tool import cleanup_browser +from tools.browser_tool_lifecycle import cleanup_browser from agent.memory_provider import is_trivial_prompt from agent.client_lifecycle import ClientLifecycleMixin