From e15e8ce949af656297e6e603690fdeccd9c7c267 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 24 Feb 2025 00:01:33 -0800 Subject: [PATCH] fix bug where slash command with space in the name wouldn't ru n --- gui/src/redux/thunks/streamResponse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/redux/thunks/streamResponse.ts b/gui/src/redux/thunks/streamResponse.ts index 16043daee..9c0cb4b9a 100644 --- a/gui/src/redux/thunks/streamResponse.ts +++ b/gui/src/redux/thunks/streamResponse.ts @@ -41,8 +41,8 @@ const getSlashCommandForInput = ( if (lastText.startsWith("/")) { slashCommandName = lastText.split(" ")[0].substring(1); - slashCommand = slashCommands.find( - (command) => command.name === slashCommandName, + slashCommand = slashCommands.find((command) => + lastText.startsWith(`/${command.name} `), ); } if (!slashCommand || !slashCommandName) {