@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.
@@ -581,7 +581,7 @@ function ChatComposer({
581
581
  const hasContextWindow = Number.isFinite(Number(contextWindow?.max_tokens)) && Number(contextWindow?.max_tokens) > 0;
582
582
  const showUtilityRow = utilityRow === "below";
583
583
  const submit = async () => {
584
- if (disabled || submittingRef.current || validationError) return;
584
+ if (disabled || isCancelling || submittingRef.current || validationError) return;
585
585
  const value = text;
586
586
  const selectedFiles = files;
587
587
  const clearedRevision = draftRevisionRef.current + 1;