From 557bd80174d208c3acf595a8678348c742b81b48 Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Fri, 3 Apr 2026 13:10:44 -0500 Subject: [PATCH] fix: better bug keyword detection for feedback auto-labeling Co-Authored-By: Claude Opus 4.6 (1M context) --- gateway/feedback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/feedback.py b/gateway/feedback.py index 5234c16..d60611f 100644 --- a/gateway/feedback.py +++ b/gateway/feedback.py @@ -38,8 +38,8 @@ def auto_label(text: str, source: str = "ios") -> list[int]: label_ids.append(LABELS["web"]) # Bug or feature - bug_words = ["bug", "broken", "crash", "error", "wrong", "fix", "issue", "doesn't work", "not working", "can't"] - feature_words = ["want", "add", "wish", "would be nice", "can we", "can you", "feature", "idea", "suggest"] + bug_words = ["bug", "broken", "crash", "error", "wrong", "fix", "issue", "doesn't work", "not working", "can't", "cant", "won't", "wont", "stuck", "freeze", "blank", "missing", "fail", "weird", "off", "messed", "problem", "glitch", "after you edit", "after i edit", "when i click", "when you click", "should be", "supposed to"] + feature_words = ["want", "add", "wish", "would be nice", "can we", "can you", "feature", "idea", "suggest", "could you", "how about", "it would be", "please add", "need a", "would love"] if any(w in text_lower for w in bug_words): label_ids.append(LABELS["bug"])