From e09cbc112e4cdd007d7aac21fef11f31d39125d6 Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 12 Apr 2026 14:04:14 +0200 Subject: [PATCH] fix: Preserve case in question IDs during parsing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Parser converted question IDs to lowercase ('qAnalyst' → 'qanalyst'), causing normalization to fail because id_catalog lookup is case-sensitive. Impact: All workflow question signals were lost - normalized_signals stayed empty, so template placeholders like {{node_2.signal_qAnalyst}} remained unresolved. Solution: Removed .lower() call in parse_decision_questions() to preserve original case from AI response. Root cause: Line 162 in result_container_parser.py Fixes: Question augmentation signals not appearing in workflow end nodes --- backend/result_container_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/result_container_parser.py b/backend/result_container_parser.py index 638e050..594e152 100644 --- a/backend/result_container_parser.py +++ b/backend/result_container_parser.py @@ -158,7 +158,8 @@ def parse_decision_questions(section_text: str) -> Dict[str, str]: for pattern in patterns: matches = re.finditer(pattern, section_text, re.MULTILINE | re.IGNORECASE) for match in matches: - question_type = match.group(1).strip().lower() + # Preserve original case for question IDs (e.g., "qAnalyst" not "qanalyst") + question_type = match.group(1).strip() answer = match.group(2).strip() # Entferne Klammern und Whitespace