@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.js CHANGED
@@ -210,10 +210,7 @@ var AuthProvider = ({
210
210
  setUser(null);
211
211
  setTenants([]);
212
212
  setCurrentTenant(null);
213
- sessionStorage.removeItem("lattice_user");
214
- sessionStorage.removeItem("lattice_tenants");
215
- sessionStorage.removeItem("lattice_current_tenant");
216
- sessionStorage.removeItem("lattice_token");
213
+ sessionStorage.clear();
217
214
  onLogout?.();
218
215
  }, [onLogout]);
219
216
  const selectTenant = (0, import_react.useCallback)(async (tenantId) => {
@@ -7689,7 +7686,7 @@ var TaskCard = ({
7689
7686
  const status = toolCallData.status || "pending";
7690
7687
  const response = toolCallData.response || null;
7691
7688
  const { threadId, assistantId } = useAgentChat();
7692
- let new_assistant_id = assistantId;
7689
+ let new_assistant_id = subagent_type;
7693
7690
  if (subagent_type === "general-purpose") {
7694
7691
  new_assistant_id = assistantId + "-general-purpose";
7695
7692
  }