teodor-new-chat-ui 4.3.232 → 4.3.233

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.esm.js CHANGED
@@ -4062,7 +4062,7 @@ function Xx({
4062
4062
  ce && A(!1);
4063
4063
  }
4064
4064
  }, [c, B, I, s]), Qe = Ce(async () => {
4065
- U.current = !0, te(), W.current = null, ee.current = null, E([], {}), Z([]), j(!1), D(null), x(null), await Promise.resolve(), U.current = !1;
4065
+ U.current = !0, te(), W.current = null, ee.current = null, E([], {}), Z([]), j(!1), D(null), x(null), C(!1), A(!1), pe(!1), await Promise.resolve(), await Promise.resolve(), U.current = !1;
4066
4066
  }, [E, te]), ot = Ce(
4067
4067
  async (ce, re, Ye) => {
4068
4068
  const De = W.current;
@@ -4088,7 +4088,13 @@ function Xx({
4088
4088
  Y();
4089
4089
  }, [Y]), Et(() => {
4090
4090
  var ce, re;
4091
- !o || !m || T || ee.current !== m && (ee.current = m, n ? (console.log("[ChatSessionProvider] Loading thread with checkpoint:", n), (ce = P.current) == null || ce.call(P, m, n)) : (console.log("[ChatSessionProvider] Loading thread with latest checkpoint"), (re = P.current) == null || re.call(P, m)));
4091
+ if (!(!o || !m || T)) {
4092
+ if (U.current) {
4093
+ console.log("[ChatSessionProvider] Skipping load - cleanup in progress");
4094
+ return;
4095
+ }
4096
+ ee.current !== m && (ee.current = m, n ? (console.log("[ChatSessionProvider] Loading thread with checkpoint:", n), (ce = P.current) == null || ce.call(P, m, n)) : (console.log("[ChatSessionProvider] Loading thread with latest checkpoint"), (re = P.current) == null || re.call(P, m)));
4097
+ }
4092
4098
  }, [o, m, T, n, r]), Et(() => {
4093
4099
  a == null || a(m);
4094
4100
  }, [m, a]);