Commit 0d869e0
fix(browser-use): Fix DynamicContentWatchdog AttributeError causing agent startup failures
The DynamicContentWatchdog was trying to access event.target_id on BrowserStateRequestEvent
objects, but this attribute doesn't exist on that event type. This caused an AttributeError
that prevented agents from starting properly, resulting in 0-step failures in evaluations.
The fix adds a hasattr() check before accessing the target_id attribute, ensuring the
watchdog gracefully handles events that don't have this attribute.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent dc36acd commit 0d869e0
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
0 commit comments