Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix: remove trailing whitespace to pass linter
Austin658abfeeef19
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.pyindex 9279d661b..ae4915fd5 100644--- a/browser_use/browser/profile.py+++ b/browser_use/browser/profile.py@@ -736,7 +736,7 @@ class BrowserProfile(BrowserConnectArgs, BrowserLaunchPersistentContextArgs, Broself.window_size = self.window_size or display_size or ViewportSize(width=1280, height=1100)self.no_viewport = True if self.no_viewport is None else self.no_viewportself.viewport = None if self.no_viewport else self.viewport-+# Auto-inherit DISPLAY environment variable for headful modeif 'DISPLAY' in os.environ and 'DISPLAY' not in self.env:self.env['DISPLAY'] = os.environ['DISPLAY']