diff --git a/cptr/frontend/src/lib/components/chat/ChatInput.svelte b/cptr/frontend/src/lib/components/chat/ChatInput.svelte index 2806329..7003ba9 100644 --- a/cptr/frontend/src/lib/components/chat/ChatInput.svelte +++ b/cptr/frontend/src/lib/components/chat/ChatInput.svelte @@ -910,6 +910,7 @@ }); function runSlashCommand(commandId: string | undefined) { + if (commandId === 'compact' && (sending || streaming)) return; if (commandId === 'compact' && oncompact) { inputText = ''; oncompact();