From 58888fae32364d321362a49aad3f8cd5a5139db6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 18 Jun 2026 17:10:54 +0200 Subject: [PATCH] refac --- cptr/frontend/src/lib/components/chat/ChatInput.svelte | 1 + 1 file changed, 1 insertion(+) 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();