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) {