fix(navigation): implement Strict Button Guards to prevent VLM misclassification of user names as follow/like buttons

This commit is contained in:
2026-04-27 11:19:23 +02:00
parent 117e7a22e7
commit 294403d590

View File

@@ -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)