From c892f4ecea80b115492d27ba05484a10192860d3 Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Thu, 25 Sep 2025 15:53:20 -0700 Subject: [PATCH] Change anthropic predict_click logic --- libs/python/agent/agent/loops/anthropic.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/python/agent/agent/loops/anthropic.py b/libs/python/agent/agent/loops/anthropic.py index cd616d38..ec25250e 100644 --- a/libs/python/agent/agent/loops/anthropic.py +++ b/libs/python/agent/agent/loops/anthropic.py @@ -1577,11 +1577,10 @@ Task: Click {instruction}. Output ONLY a click action on the target element.""" isinstance(item.get("action"), dict)): action = item["action"] - if action.get("type") == "click": + if action.get("x") and action.get("y"): x = action.get("x") y = action.get("y") - if x is not None and y is not None: - return (int(x), int(y)) + return (int(x), int(y)) return None