@agents24/chat-react 0.5.32 → 0.5.34

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
@@ -2654,12 +2654,6 @@ function HitlPartRow({
2654
2654
  const presentation = part.presentation || {};
2655
2655
  const requireComment = presentation.require_comment === true;
2656
2656
  const isTerminal = part.status !== "pending";
2657
- const resolvedRef = React12.useRef(null);
2658
- const wasTerminal = React12.useRef(isTerminal);
2659
- React12.useEffect(() => {
2660
- if (isTerminal && !wasTerminal.current) resolvedRef.current?.focus();
2661
- wasTerminal.current = isTerminal;
2662
- }, [isTerminal]);
2663
2657
  if (part.hitlKind === "user_input") {
2664
2658
  return /* @__PURE__ */ jsx11(
2665
2659
  AskUserInteraction,
@@ -2678,9 +2672,7 @@ function HitlPartRow({
2678
2672
  }
2679
2673
  );
2680
2674
  }
2681
- if (isTerminal) {
2682
- return /* @__PURE__ */ jsx11("div", { className: "a24-hitl a24-hitl--resolved px-1 py-1 text-sm text-muted-foreground", ref: resolvedRef, role: "status", tabIndex: -1, children: resolvedHitlLabel(part) });
2683
- }
2675
+ if (isTerminal) return null;
2684
2676
  return /* @__PURE__ */ jsxs7("div", { className: "a24-hitl space-y-2.5 px-1 py-2", children: [
2685
2677
  /* @__PURE__ */ jsx11("div", { className: "a24-hitl__title text-sm font-medium text-foreground text-pretty", children: hitlTitle(part) }),
2686
2678
  requireComment ? /* @__PURE__ */ jsx11(
@@ -2831,7 +2823,7 @@ function AgentResponseTimeline({
2831
2823
  toolViewMode = "closed"
2832
2824
  }) {
2833
2825
  isLoading = isLoading && !message.responseCompletion;
2834
- 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));
2826
+ const parts = (displayParts || message.parts || []).filter((part) => (part.kind !== "tool" || !isInternalAskUserTool(part)) && (part.kind !== "hitl" || part.hitlKind === "user_input" || part.status === "pending") && (part.kind !== "model-turn" || part.turnKind === "agent") && (part.kind !== "node-activity" || nodeActivityMode === "all" || nodeActivityMode === "default" && part.defaultChatVisible));
2835
2827
  const toolParts = parts.filter((part) => part.kind === "tool");
2836
2828
  const activeToolId = latestRunningAgentChatToolId(toolParts);
2837
2829
  const activeTextPartId = getActiveStreamingTextPartId(