Commit Graph

797 Commits

Author SHA1 Message Date
kalil0321 e9b877341c Update test for Chrome profile handling to reflect new behaviour 2025-10-23 17:02:25 +02:00
Magnus Müller 4ac49de9cf fix(code-use): prevent done() execution inside conditional blocks
Previously, done() calls inside if/else/elif blocks would only show a warning
but still execute, potentially causing tasks to never complete if the condition
wasn't met. This changes the behavior to raise a RuntimeError, forcing the LLM
to restructure code properly.

The proper pattern is:
```python
# Validate and set result variables
if condition:
    result = "success"
else:
    result = "failure"

# Then call done() unconditionally
await done(result, success=True)
```

Changes:
- Upgraded warning to RuntimeError in namespace.py
- Added comprehensive test suite with 5 test cases
- Tests cover if/else/elif blocks and verify standalone done() still works

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 10:03:10 -07:00
Magnus Müller 490a5b84e1 Enhance test for actor page key presses: increased sleep duration for key presses, added debug output, and improved handling of empty output. 2025-10-21 22:39:28 -07:00
Magnus Müller db8f533fe3 test 2025-10-21 22:36:28 -07:00
Magnus Müller ff36e605e1 test 2025-10-21 22:33:23 -07:00
Magnus Müller f55d789370 Fix tests 2025-10-21 22:28:50 -07:00
Magnus Müller fd831afeef Test 2025-10-21 22:23:43 -07:00
Magnus Müller 23fbf75215 Formatter 2025-10-21 22:17:26 -07:00
Magnus Müller afbc0a0913 Test 2025-10-21 22:15:08 -07:00
Magnus Müller 32ce9161be Tests 2025-10-21 22:03:05 -07:00
Magnus Müller fad8ed06d6 Linter 2025-10-21 21:57:51 -07:00
Magnus Müller b574c403f3 Fix test 2025-10-21 21:56:42 -07:00
Magnus Müller 9caa248316 Merge code7 branch changes 2025-10-21 18:55:54 -07:00
Reagan Hsu bc0ce8c226 Merge branch 'main' into fix/keyboard-events-complete 2025-10-13 19:29:16 -07:00
Reagan Hsu d3ea9a17e6 add new testing for Page.press() for Actors 2025-10-13 18:29:24 -07:00
Magnus Müller 4078b6e265 Remove while_holding_ctrl logic in click 2025-10-12 16:11:09 -07:00
Magnus Müller f6918d55ec Fix scroll 2025-10-12 13:32:14 -07:00
Magnus Müller 14a61fa251 Fix test 2025-10-12 13:20:52 -07:00
Magnus Müller 7a463675ff Update LLM integration in evaluate_tasks.py to use ChatGoogle instead of ChatOpenAI for agent and judge initialization 2025-10-12 00:50:22 -07:00
Saurav Panda 0fea49e0ad Merge branch 'main' into remove-auth-message 2025-10-09 11:46:35 -07:00
Magnus Müller 36bbf1ee23 Update outdated function names 2025-10-05 19:30:10 -07:00
Magnus Müller 324ac74204 Linter 2025-10-05 19:21:12 -07:00
Magnus Müller b53a7c116a Update outdated function names 2025-10-05 19:12:52 -07:00
Saurav Panda f8be13b708 refc: removed auth message and cloud_sync_field 2025-10-05 17:04:43 -07:00
Magnus Müller 8023733bb9 Update test 2025-10-05 15:24:54 -07:00
Magnus Müller 86a5bbe103 Update test 2025-10-05 15:24:23 -07:00
Magnus Müller 8daca53589 Fix linter 2025-10-05 15:11:40 -07:00
Magnus Müller f0acb6b338 Replace tool names like go_to_url wtih navigate 2025-10-05 13:31:38 -07:00
mertunsall b154d906c7 fix tests 2025-10-04 02:15:32 +02:00
mertunsall 5160ca3562 IP blocking feature 2025-10-03 17:57:11 +02:00
mertunsall 16457c2a5e Blocked domains are optimized!!! 2025-10-01 19:25:30 +02:00
Cyrus 9343371cd7 Merge branch 'main' into anyio-path 2025-09-22 20:19:34 -06:00
Cyrus 247ed196a6 Merge branch 'main' into anyio-path 2025-09-22 20:18:05 -06:00
Magnus Müller dc34a5edb0 Update search google 2025-09-22 18:43:14 -07:00
Magnus Müller 27c3ea2b86 Remove test 2025-09-22 18:29:29 -07:00
Chris Schnabl 84b7eb07ee Run pre-commit hooks 2025-09-22 10:49:55 -07:00
Chris Schnabl 03608b62a2 Remove unused paramter 2025-09-21 21:38:42 -07:00
Saurav Panda c1381b9b3b Merge branch 'main' into add-baas-support 2025-09-18 15:54:47 -07:00
Saurav Panda 0a13273fc2 refc: renamed cloud_browser to use_cloud 2025-09-18 15:29:49 -07:00
Magnus Müller d1f33c0c5e Remove index return to avoid wrong index clicks 2025-09-17 11:12:30 -07:00
Saurav Panda 85a2386c91 feat: added cloud_browser feature 2025-09-16 22:27:45 -07:00
Matic Zavadlal c807f4d36e add prohibited domains 2025-09-14 18:31:57 -07:00
Saurav Panda ea0c79fe72 feat: automatically add www for allowed domains 2025-09-12 16:06:57 -07:00
Cyrus 9d7dfd7738 replace aiofiles with anyio.Path 2025-09-08 11:37:34 -06:00
avocardio c7dcb668bc fix: more lint errors 2025-09-08 09:47:07 -07:00
avocardio 3336b9d55f feat: Add enhanced screenshot API 2025-09-08 09:14:32 -07:00
Magnus Müller a19b583430 remove 2 longer tests because this test mainly shows if browseruse works end to end 2025-09-08 08:35:18 -07:00
Saurav Panda 4a41caaa9d fixed auth event creation 2025-09-06 18:22:02 -07:00
Saurav Panda 8a736c9dfa Merge branch 'main' into magnus/eng-475-sync-do-not-send-data-if-not-signed-in 2025-09-06 17:54:31 -07:00
Magnus Müller 84db72b555 Merge commit 'ad68c577c27cafb22270b811fbe9a0b9f4fcd521' into fix-disable-security-bug 2025-09-06 15:19:59 -07:00