From 12a1d9ff2dfe35fb488310a2b2f90de5d1d93e56 Mon Sep 17 00:00:00 2001 From: Ting-Wai To <40179554+tingwai@users.noreply.github.com> Date: Wed, 13 Aug 2025 22:03:56 -0700 Subject: [PATCH] remove slash commands from intro --- src/ui/IntroMessage.tsx | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/src/ui/IntroMessage.tsx b/src/ui/IntroMessage.tsx index ef1e892c2..9d70f3140 100644 --- a/src/ui/IntroMessage.tsx +++ b/src/ui/IntroMessage.tsx @@ -62,26 +62,18 @@ const IntroMessage: React.FC = ({ - {/* Slash commands */} - Slash commands: - {allCommands - .sort((a, b) => a.name.localeCompare(b.name)) - .map((command, index) => ( - - - /{command.name}:{" "} - {command.description} - - ))} - {/* MCP prompts */} - {mcpPrompts.map((prompt, index) => ( - - - /{prompt.name}:{" "} - {prompt.description} - - ))} - - + {mcpPrompts.length > 0 && ( + <> + {mcpPrompts.map((prompt, index) => ( + + - /{prompt.name}:{" "} + {prompt.description} + + ))} + + + )} {/* Rules */} {allRules.length > 0 && (