From 73b731fef860a2e4692e3f2f5be4d0c59adf8b75 Mon Sep 17 00:00:00 2001 From: Dom Date: Mon, 20 Apr 2026 11:09:10 +0200 Subject: [PATCH] =?UTF-8?q?fix(knowledge):=20seuil=20OCR=20bouton=203?= =?UTF-8?q?=E2=86=922=20chars=20pour=20supporter=20OK=20et=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le filtre len<3 bloquait les boutons "OK" (2 chars) et "No" (2 chars). Seuil abaissé à 2 — filtre les lettres isolées mais laisse passer les boutons courts courants des dialogues Windows. Co-Authored-By: Claude Opus 4.6 (1M context) --- visual_workflow_builder/backend/api_v3/execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visual_workflow_builder/backend/api_v3/execute.py b/visual_workflow_builder/backend/api_v3/execute.py index 4e27fc831..2c4a098a5 100644 --- a/visual_workflow_builder/backend/api_v3/execute.py +++ b/visual_workflow_builder/backend/api_v3/execute.py @@ -272,7 +272,7 @@ def _handle_detected_pattern(pattern: Dict[str, Any]) -> bool: candidate_lower = candidate.lower() for word in words: word_text = word['text'].lower() - if len(word_text) < 3 or len(candidate_lower) < 3: + if len(word_text) < 2 or len(candidate_lower) < 2: continue if word_text == candidate_lower: x1, y1, x2, y2 = word['bbox']