Skip to content

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

fix merge conflict error

Nick Sweetingb4c3cca7891e
diff --git a/browser_use/agent/gif.py b/browser_use/agent/gif.py
index 873f37bf7..a8208cb33 100644
--- a/browser_use/agent/gif.py
+++ b/browser_use/agent/gif.py
@@ -64,8 +64,7 @@ def create_history_gif(
# Find the first non-placeholder screenshot
first_real_screenshot = None
for item in history.history:
- if item.state.screenshot and item.state.screenshot !=
- :
+ if item.state.screenshot and item.state.screenshot != PLACEHOLDER_4PX_SCREENSHOT:
first_real_screenshot = item.state.screenshot
break