@axiom-lattice/react-sdk 2.1.8 → 2.1.9

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/index.js CHANGED
@@ -716,7 +716,7 @@ function AgentThreadProvider({
716
716
  }));
717
717
  }, []);
718
718
  (0, import_react3.useEffect)(() => {
719
- if (threadId) {
719
+ if (threadId && clientAssistantId === assistantId) {
720
720
  loadMessages();
721
721
  } else {
722
722
  clearMessages();
@@ -727,7 +727,7 @@ function AgentThreadProvider({
727
727
  stopStreamingRef.current = null;
728
728
  }
729
729
  };
730
- }, [threadId, loadMessages, clearMessages]);
730
+ }, [threadId, loadMessages, clearMessages, clientAssistantId, assistantId]);
731
731
  const value = {
732
732
  state,
733
733
  sendMessage,
@@ -4089,7 +4089,6 @@ var TaskDetail = ({ data, component_key, interactive = true }) => {
4089
4089
  children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { style: { overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4090
4090
  Chating,
4091
4091
  {
4092
- description,
4093
4092
  name: subagent_type,
4094
4093
  showHeader: true,
4095
4094
  showSender: false,