From 3e28c46026687414290d13255f4d19fa7a1aecd9 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 21 Aug 2025 21:25:42 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 5cfeba95eb..a2f5116dee 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1442,6 +1442,7 @@ } messageInput?.setText(''); + prompt = ''; // Reset chat input textarea if (!($settings?.richTextInput ?? true)) { @@ -2334,6 +2335,7 @@ clearDraft(); if (e.detail || files.length > 0) { await tick(); + submitPrompt( ($settings?.richTextInput ?? true) ? e.detail.replaceAll('\n\n', '\n')