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 && (