fix(navigation): implement Strict Button Guards to prevent VLM misclassification of user names as follow/like buttons
This commit is contained in:
@@ -284,6 +284,13 @@ class TelepathicEngine:
|
||||
# Not a grid item
|
||||
return False
|
||||
|
||||
# 5.5 Strict Button Guards
|
||||
if "follow" in intent or "like" in intent or "save" in intent or "comment" in intent:
|
||||
# It must be an action button/element, not a username or layout container.
|
||||
res_id = node.get("id", "").lower()
|
||||
if "profile_name" in res_id or "username" in res_id or "title" in res_id:
|
||||
return False
|
||||
|
||||
# 6. Block massive layout containers UNLESS specifically looking for feed/post
|
||||
MAX_CONTAINER_AREA = 500000
|
||||
area = node.get("area", 0)
|
||||
|
||||
Reference in New Issue
Block a user