fix: add typing indicator back when waiting for response

This commit is contained in:
shokollm
2026-04-10 10:05:50 +00:00
parent 299e74cffa
commit 925920eee1
2 changed files with 15 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
interface Props {
bot: Bot | null;
messages: ChatMessage[];
isSending?: boolean;
onSendMessage: (message: string) => void;
onSelectBot?: (botId: string) => void;
availableBots?: Bot[];
@@ -15,6 +16,7 @@
let {
bot,
messages,
isSending = false,
onSendMessage,
onSelectBot,
availableBots = [],
@@ -132,6 +134,18 @@
</div>
</div>
{/each}
{#if isSending}
<div class="message assistant">
<div class="message-content">
<div class="typing">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
</div>
</div>
{/if}
</div>
{#if bot}

View File

@@ -109,6 +109,7 @@
<ChatInterface
bot={$currentBotStore}
messages={$chatStore}
isSending={isSending}
onSendMessage={handleSendMessage}
/>
</div>