Skip to content

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

handle ping success:false case in ensure_daemon config check

ShawnPana566bca0a88c1
diff --git a/browser_use/skill_cli/main.py b/browser_use/skill_cli/main.py
index 223d34521..74c1c7556 100755
--- a/browser_use/skill_cli/main.py
+++ b/browser_use/skill_cli/main.py
@@ -254,8 +254,9 @@ def ensure_daemon(
file=sys.stderr,
)
sys.exit(1)
+ return # Ping returned failure — daemon alive but can't verify config, reuse it
except Exception:
- return # Daemon alive but can't verify config — reuse it, can't safely restart
+ return # Daemon alive but not responsive — reuse it, can't safely restart
# Build daemon command
cmd = [