From 294403d590b298cc6bc221831e93c0db82a824ab Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 27 Apr 2026 11:19:23 +0200 Subject: [PATCH] fix(navigation): implement Strict Button Guards to prevent VLM misclassification of user names as follow/like buttons --- GramAddict/core/telepathic_engine.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GramAddict/core/telepathic_engine.py b/GramAddict/core/telepathic_engine.py index 8594087..47bc262 100644 --- a/GramAddict/core/telepathic_engine.py +++ b/GramAddict/core/telepathic_engine.py @@ -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)