From dd79ed5ab9ba226c24d29efd4f73c93365e393d0 Mon Sep 17 00:00:00 2001 From: Hikari Date: Mon, 9 Mar 2026 13:05:26 -0700 Subject: [PATCH] fix: block message submission whilst Claude is processing Prevents the race condition where sending a message before the previous turn's result message arrives caused both to be processed together, making it appear the first message was ignored. --- src/lib/components/InputBar.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/InputBar.svelte b/src/lib/components/InputBar.svelte index 024aedc..96a494b 100644 --- a/src/lib/components/InputBar.svelte +++ b/src/lib/components/InputBar.svelte @@ -248,7 +248,7 @@ const hasAttachments = attachments.length > 0; // Need either a message or attachments to submit - if ((!message && !hasAttachments) || isSubmitting) return; + if ((!message && !hasAttachments) || isSubmitting || isProcessing) return; // Check for slash commands first (these work even when disconnected) if (message && isSlashCommand(message)) { @@ -768,7 +768,7 @@ User: ${formattedMessage}`; async function handleQuickAction(prompt: string): Promise { // Quick actions send the prompt directly - if (!isConnected || isSubmitting) return; + if (!isConnected || isSubmitting || isProcessing) return; // Add to history addToHistory(prompt); @@ -1018,7 +1018,7 @@ User: ${formattedMessage}`; placeholder={isConnected ? "Ask Hikari anything... (type / for commands)" : "Connect to Claude first..."} - disabled={isSubmitting} + disabled={isSubmitting || isProcessing} rows={1} style="height: {textareaHeight}px; font-size: var(--terminal-font-size, 14px); font-family: var(--terminal-font-family, monospace);" class="w-full px-4 py-3 bg-[var(--bg-secondary)] border border-[var(--border-color)]