@agents24/chat-react 0.5.25 → 0.5.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -606,7 +606,7 @@ function ChatComposer({
606
606
  const hasContextWindow = Number.isFinite(Number(contextWindow?.max_tokens)) && Number(contextWindow?.max_tokens) > 0;
607
607
  const showUtilityRow = utilityRow === "below";
608
608
  const submit = async () => {
609
- if (disabled || submittingRef.current || validationError) return;
609
+ if (disabled || isCancelling || submittingRef.current || validationError) return;
610
610
  const value = text;
611
611
  const selectedFiles = files;
612
612
  const clearedRevision = draftRevisionRef.current + 1;