From d8dc4379a927f8468c5920bb0682c10efed8cb2d Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 2 Feb 2026 11:52:32 -0300 Subject: [PATCH] feat: include class in hottest node facts --- atlasbot/engine/answerer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/atlasbot/engine/answerer.py b/atlasbot/engine/answerer.py index bfeef95..9e87ca2 100644 --- a/atlasbot/engine/answerer.py +++ b/atlasbot/engine/answerer.py @@ -1189,7 +1189,12 @@ def _expand_hottest_line(line: str) -> list[str]: continue node = match.group("node").strip() value = match.group("value").strip() - expanded.append(f"hottest_{metric}_node: {node} ({value})") + class_match = re.search(r"\[(?P[^\]]+)\]", rest) + node_class = class_match.group("class").strip() if class_match else "" + if node_class: + expanded.append(f"hottest_{metric}_node: {node} [{node_class}] ({value})") + else: + expanded.append(f"hottest_{metric}_node: {node} ({value})") return expanded