@axiom-lattice/react-sdk 2.1.45 → 2.1.47

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
@@ -118,10 +118,7 @@ var AuthProvider = ({
118
118
  setUser(null);
119
119
  setTenants([]);
120
120
  setCurrentTenant(null);
121
- sessionStorage.removeItem("lattice_user");
122
- sessionStorage.removeItem("lattice_tenants");
123
- sessionStorage.removeItem("lattice_current_tenant");
124
- sessionStorage.removeItem("lattice_token");
121
+ sessionStorage.clear();
125
122
  onLogout?.();
126
123
  }, [onLogout]);
127
124
  const selectTenant = useCallback(async (tenantId) => {
@@ -7683,7 +7680,7 @@ var TaskCard = ({
7683
7680
  const status = toolCallData.status || "pending";
7684
7681
  const response = toolCallData.response || null;
7685
7682
  const { threadId, assistantId } = useAgentChat();
7686
- let new_assistant_id = assistantId;
7683
+ let new_assistant_id = subagent_type;
7687
7684
  if (subagent_type === "general-purpose") {
7688
7685
  new_assistant_id = assistantId + "-general-purpose";
7689
7686
  }