@agents24/chat-react 0.5.21 → 0.5.23

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.
package/dist/ui/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getActiveStreamingTextPartId,
3
3
  useStreamingText
4
- } from "../chunk-SSUO4EPD.js";
4
+ } from "../chunk-5PWUQTLK.js";
5
5
 
6
6
  // src/ui/agent-chat-composer.tsx
7
7
  import * as React3 from "react";
@@ -2513,6 +2513,7 @@ function AgentResponseTimeline({
2513
2513
  toolSlots,
2514
2514
  toolViewMode = "closed"
2515
2515
  }) {
2516
+ isLoading = isLoading && !message.responseCompletion;
2516
2517
  const parts = (displayParts || message.parts || []).filter((part) => (part.kind !== "tool" || !isInternalAskUserTool(part)) && (part.kind !== "model-turn" || part.turnKind === "agent") && (part.kind !== "node-activity" || nodeActivityMode === "all" || nodeActivityMode === "default" && part.defaultChatVisible));
2517
2518
  const toolParts = parts.filter((part) => part.kind === "tool");
2518
2519
  const activeToolId = latestRunningAgentChatToolId(toolParts);
@@ -2688,7 +2689,7 @@ function AgentChatMessage({
2688
2689
  userMessageShowMoreLabel
2689
2690
  }) {
2690
2691
  const isAssistant = message.role === "assistant";
2691
- const isStreaming = isAssistant && message.id === streamingMessageId;
2692
+ const isStreaming = isAssistant && message.id === streamingMessageId && !message.responseCompletion;
2692
2693
  const resolvedUserContent = userMessageContent ?? message.content;
2693
2694
  const shouldRenderContent = isAssistant || Boolean(renderUserContent || resolvedUserContent);
2694
2695
  const showAttachments = Boolean(message.attachments?.length) && (message.role === "user" || showAssistantAttachments);