fix(webui): queue slash-prefixed chat text during responses

This commit is contained in:
Xubin Ren committed 2026-10-09 12:28:32 +08:00
1 parent 7e00d6a944
commit 5cf629963d
4 files changed
+49 -1

No files matched your search

@@ -124,6 +124,7 @@ import {
import { sessionHandleColor } from "@/lib/session-handle";
import { requestSkillsRefresh } from "@/lib/skill-events";
import {
isRegisteredSlashCommand,
isSideChannelLifecycle,
slashCommandLifecycle,
} from "@/lib/slash-command";
@@ -1199,7 +1200,7 @@ export function ThreadComposer({
&& !encoding
&& !hasErrors
&& hasComposerContent
&& !value.trimStart().startsWith("/");
&& !isRegisteredSlashCommand(value, slashCommands);
const slashQuery = useMemo(() => {
if (interactionDisabled || slashMenuDismissed || !value.startsWith("/")) return null;