generated from nhcarrigan/template
fix: resolve message submission and stuck processing bugs #199
@@ -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<void> {
|
||||
// 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)]
|
||||
|
||||
Reference in New Issue
Block a user