From 08c02321846e638b5df400a63a494f90a482b9bd Mon Sep 17 00:00:00 2001 From: arkml Date: Fri, 19 Sep 2025 18:34:20 +0530 Subject: [PATCH] disable message sending if the image processing hasnt completed yet --- .../components/common/compose-box-playground.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/rowboat/components/common/compose-box-playground.tsx b/apps/rowboat/components/common/compose-box-playground.tsx index 940e4de1..229582df 100644 --- a/apps/rowboat/components/common/compose-box-playground.tsx +++ b/apps/rowboat/components/common/compose-box-playground.tsx @@ -37,6 +37,9 @@ export function ComposeBoxPlayground({ }, [messages.length, shouldAutoFocus]); function handleInput() { + // Mirror send-button disable rules to block Enter submits + if (disabled || loading || uploading) return; + if (pendingImage?.url && pendingImage.description === undefined) return; const text = input.trim(); if (!text && !pendingImage) { return; @@ -181,7 +184,14 @@ export function ComposeBoxPlayground({