@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.mjs CHANGED
@@ -671,7 +671,7 @@ function AgentThreadProvider({
671
671
  }));
672
672
  }, []);
673
673
  useEffect3(() => {
674
- if (threadId) {
674
+ if (threadId && clientAssistantId === assistantId) {
675
675
  loadMessages();
676
676
  } else {
677
677
  clearMessages();
@@ -682,7 +682,7 @@ function AgentThreadProvider({
682
682
  stopStreamingRef.current = null;
683
683
  }
684
684
  };
685
- }, [threadId, loadMessages, clearMessages]);
685
+ }, [threadId, loadMessages, clearMessages, clientAssistantId, assistantId]);
686
686
  const value = {
687
687
  state,
688
688
  sendMessage,
@@ -4108,7 +4108,6 @@ var TaskDetail = ({ data, component_key, interactive = true }) => {
4108
4108
  children: /* @__PURE__ */ jsx29("div", { style: { overflow: "hidden" }, children: /* @__PURE__ */ jsx29(
4109
4109
  Chating,
4110
4110
  {
4111
- description,
4112
4111
  name: subagent_type,
4113
4112
  showHeader: true,
4114
4113
  showSender: false,