fix(webui): keep stop immediate without command metadata
This commit is contained in:
1 parent
5cf629963d
commit
24a5c6dd56
3 files changed
+19
-1
No files matched your search
@@ -1200,7 +1200,10 @@ export function ThreadComposer({
|
||||
&& !encoding
|
||||
&& !hasErrors
|
||||
&& hasComposerContent
|
||||
&& !isRegisteredSlashCommand(value, slashCommands);
|
||||
// Without command metadata, let the gateway classify slash input immediately.
|
||||
&& (slashCommands.length > 0
|
||||
? !isRegisteredSlashCommand(value, slashCommands)
|
||||
: !value.trimStart().startsWith("/"));
|
||||
|
||||
const slashQuery = useMemo(() => {
|
||||
if (interactionDisabled || slashMenuDismissed || !value.startsWith("/")) return null;
|
||||
|
||||
Reference in new issue
Block a user