From 09bf641f3539fbf3ec57820a130ddcde0f3420e1 Mon Sep 17 00:00:00 2001 From: VascoSch92 Date: Wed, 20 May 2026 18:22:57 +0200 Subject: [PATCH] fix(skills): prefer frontmatter description over body content in slash command menu --- .../features/chat/components/slash-command-menu.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/features/chat/components/slash-command-menu.tsx b/src/components/features/chat/components/slash-command-menu.tsx index 4a8cdf0a9..ae9cfe9fd 100644 --- a/src/components/features/chat/components/slash-command-menu.tsx +++ b/src/components/features/chat/components/slash-command-menu.tsx @@ -85,12 +85,12 @@ function SlashCommandMenuItem({ ref, }: SlashCommandMenuItemProps) { const description = useMemo(() => { - if ("content" in item.skill && item.skill.content) { - return getSkillDescription(item.skill.content); - } if ("description" in item.skill && item.skill.description) { return stripMarkdown(item.skill.description); } + if ("content" in item.skill && item.skill.content) { + return getSkillDescription(item.skill.content); + } return null; }, [item.skill]);