Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

global var

Laith Weinberger8e279db89370
diff --git a/browser_use/cli.py b/browser_use/cli.py
index 3bf931c02..b429ebb9b 100644
--- a/browser_use/cli.py
+++ b/browser_use/cli.py
@@ -38,7 +38,6 @@ def _capture_via_harness(
result: int | str | None = None,
error_message: str | None = None,
) -> None:
-
try:
from browser_harness import telemetry as harness_telemetry
@@ -170,6 +169,7 @@ def _patch_browser_harness_cli_text() -> None:
auth.run_auth_cli = run_auth_cli
telemetry.run_telemetry_cli = run_telemetry_cli
+
_delegated_to_harness = False
@@ -315,6 +315,9 @@ def browser_use_tui_main() -> int | None:
def main() -> int | None:
+ global _delegated_to_harness
+
+ _delegated_to_harness = False
args = sys.argv[1:]
start_time = time.monotonic()
command = _command_name(args)