Skip to content

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

fix inverted condition

Nick Sweeting8e6f4688d3e8
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 709a538a5..423c17bff 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -290,7 +290,7 @@ class Agent(Generic[Context]):
' https://docs.browser-use.com/customize/browser-settings#restrict-urls\n'
'Waiting 30 seconds before continuing... Press [Ctrl+C] to abort.'
)
- if not sys.stdin.isatty():
+ if sys.stdin.isatty():
try:
time.sleep(30)
except KeyboardInterrupt: