From bf9dd83c105354261b46c3ecd95790e903f67dd1 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Thu, 26 Feb 2026 12:11:32 -0800 Subject: [PATCH] fix(cli): improve description extraction for toolsets - Updated the description extraction logic to split on ". " (period+space) to avoid breaking on abbreviations like "e.g." or version numbers. - Changed the method to prioritize the first line of the description, ensuring more relevant information is captured for display. --- cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cli.py b/cli.py index 19ab53bb..10d43ea7 100755 --- a/cli.py +++ b/cli.py @@ -1088,8 +1088,10 @@ class HermesCLI: if toolset not in toolsets: toolsets[toolset] = [] desc = tool["function"].get("description", "") - # Get first sentence or first 60 chars - desc = desc.split(".")[0][:60] + # First sentence: split on ". " (period+space) to avoid breaking on "e.g." or "v2.0" + desc = desc.split("\n")[0] + if ". " in desc: + desc = desc[:desc.index(". ") + 1] toolsets[toolset].append((name, desc)) # Display by toolset