Commit Graph

1448 Commits

Author SHA1 Message Date
Nick Sweeting 8732b41bdb highlight actions nicely in logs 2025-08-12 17:50:59 -07:00
Magnus Müller 56086329fd Only increase errors if first action fails 2025-08-12 14:41:36 -07:00
Magnus Müller 5a908851d5 Increase consecutive_failures if action error 2025-08-12 13:35:13 -07:00
Gregor Žunič a29d4ac8bd reverted multi-act back to branch_path_hashes 2025-08-12 12:04:23 -07:00
Nick Sweeting c440e29ea1 fix cached selector map and js popups 2025-08-12 05:00:31 -07:00
Nick Sweeting 7a0889cf20 formatting 2025-08-12 04:14:53 -07:00
Nick Sweeting d1e569eb31 raise BrowserError exceptions instead of returning success=False 2025-08-12 04:14:53 -07:00
Nick Sweeting 9f9558e49f Merge branch 'main' into local-remote-split 2025-08-11 13:15:21 -07:00
Louis 571bfa78a4 style: Remove trailing whitespace to fix pre-commit formatting
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 20:15:21 +02:00
Louis 8a11d05bf8 Fix #2614: Prevent QueueShutDown exception when using add_new_task + multiple runs
The issue occurred when calling agent.run() after using add_new_task(), because
the second run() attempted to dispatch CreateAgentSessionEvent to an already
shut down event queue from the first run.

This change:
- Adds session_initialized flag to AgentState to track if session events were dispatched
- Only dispatches CreateAgentSessionEvent on the first run() call
- CreateAgentTaskEvent is still dispatched on every run() as tasks can change
- Maintains all existing functionality while preventing the QueueShutDown exception

Fixes the workflow: agent.run() -> agent.add_new_task() -> agent.run() ✅

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 20:06:11 +02:00
Magnus Müller aa45460617 Fixed multiact cache 2025-08-10 18:25:22 -07:00
Magnus Müller 4a0ed1fa84 Add option to include screenshot in browser state summary retrieval 2025-08-10 12:35:53 -07:00
Magnus Müller 5104f601e6 Only wait after first 2025-08-10 12:12:33 -07:00
Saurav Panda 6a50155f84 refc: removed important from the language settings 2025-08-10 10:10:34 -07:00
Saurav Panda 19ff31014d improve: clarify language detection in system prompts 2025-08-10 09:59:13 -07:00
Louis 2d839ec710 Enhance screenshot handling for GIF generation in Agent class 2025-08-10 14:15:15 +02:00
Magnus Müller 5a57bec605 Degrease timeout to 120 for step 2025-08-09 14:04:45 -07:00
Magnus Müller 2d171fd1ae Enhance target ID retrieval logic in Agent class to ensure robust handling of missing values 2025-08-09 13:09:35 -07:00
Gregor Žunič 3cf4e4ceb0 Merge commit 'a389927f75c15c570f2b365f1f3bfd75beaaa5a4' into local-remote-split-llm-debug 2025-08-09 08:42:53 -07:00
Nick Sweeting 31fb754473 finish connecting feature flags 2025-08-08 20:23:18 -07:00
Nick Sweeting 77e18cf79c dont click on file inputs or dropdowns 2025-08-08 19:33:34 -07:00
Nick Sweeting 20b4b2a684 feature flags for iframes and recent_events, split security and nav actions 2025-08-08 19:13:10 -07:00
Nick Sweeting bfa0dc5685 put preload=False behind a feature flag for first url detection 2025-08-08 18:15:25 -07:00
Gregor Žunič 9348cbff57 debug time out llm calls 2025-08-08 17:10:13 -07:00
Nick Sweeting 3bb8fb0fee improve focus tracking 2025-08-08 07:15:04 -07:00
Nick Sweeting 737b152684 test fixes 2025-08-08 05:18:53 -07:00
Nick Sweeting 5c551272cb fix screenshots 2025-08-08 05:14:01 -07:00
Nick Sweeting db4c4e9b49 fix duplicate typed keystrokes 2025-08-08 04:13:44 -07:00
Nick Sweeting e7fb8aa376 try js click before quads click 2025-08-08 03:37:04 -07:00
Nick Sweeting 734e58a1fc hotload page immediately based on url found in task 2025-08-08 03:16:55 -07:00
Nick Sweeting 4826041154 new cdp_session singleton for current page 2025-08-07 21:48:57 -07:00
Nick Sweeting e9add2d745 add screenshot watchdog 2025-08-07 17:49:25 -07:00
Nick Sweeting 1d19cbd90f fix click return values 2025-08-07 14:24:52 -07:00
Nick Sweeting 64480ddbc8 fix circular reference issues with Event node serializing 2025-08-07 14:21:12 -07:00
Nick Sweeting 93d6fe209b working events for launch and navigate 2025-08-06 19:47:34 -07:00
Yash Solanki 4f7fbd97d1 Merge branch 'main' into fix/issue-1716-event-driven-pause-resume 2025-08-06 23:05:49 +05:30
Nick Sweeting daa430435d working cli 2025-08-06 06:23:45 -07:00
Nick Sweeting e8bd1bf3fd cleanup cdp_client access patterns using property on session 2025-08-06 04:52:19 -07:00
Nick Sweeting 936f7d7d35 more playwright tearout 2025-08-06 04:06:34 -07:00
Aitor 1e2a083415 Merge branch 'main' into local-remote-split 2025-08-05 18:28:06 +01:00
mertunsall 6a15ed4c4e cleaner 2025-08-05 15:21:52 +01:00
mertunsall 10581b6e77 just improve more 2025-08-05 15:10:23 +01:00
mertunsall bc9a3a5fbb just improve 2025-08-05 15:07:50 +01:00
mertunsall a6ac62ff5e format 2025-08-05 13:45:53 +01:00
Mert Unsal 714b5f7d0b Merge branch 'main' into mert/improve_messages_for_kv_cache 2025-08-05 13:32:59 +01:00
Nick Sweeting 328a4b5be4 Merge branch 'feature/new-dom-extraction-layer' into local-remote-split 2025-08-05 03:12:48 -07:00
Nick Sweeting f3be5eeeaa track owns_browser_session on the agent and fix event result hangs 2025-08-05 02:30:42 -07:00
Nick Sweeting 145dbf6e2b fix type hints 2025-08-04 19:57:13 -07:00
Nick Sweeting 032f314a41 Merge branch 'main' into local-remote-split 2025-08-04 19:44:05 -07:00
MagellaX 67006daed0 Fix ruff-format issue: remove trailing whitespace
Remove trailing whitespace on line 242 that was causing ruff-format to fail in CI.
2025-08-04 18:39:10 +05:30