teodor-new-chat-ui 4.3.277 → 4.3.279

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
@@ -4023,8 +4023,8 @@ function qx({
4023
4023
  },
4024
4024
  [U, N]
4025
4025
  ), Xe = Ce((z) => {
4026
- console.log("[ChatSessionProvider] 🎯 Received thread_info:", z.threadId), De(z), V.current !== z.threadId && (!V.current && E.messages.length <= 1 && (re.current = z.threadId), x(z.threadId));
4027
- }, [De, E.messages.length]), { startStream: Je, stop: Le, isStreaming: $e, error: Ze, setAuthToken: rt } = Vx({
4026
+ console.log("[ChatSessionProvider] 🎯 Received thread_info:", z.threadId), De(z), V.current !== z.threadId && (re.current = z.threadId, console.log("[ChatSessionProvider] thread_info: marking to skip auto-load for new thread"), x(z.threadId));
4027
+ }, [De]), { startStream: Je, stop: Le, isStreaming: $e, error: Ze, setAuthToken: rt } = Vx({
4028
4028
  baseUrl: f,
4029
4029
  onThreadInfo: Xe,
4030
4030
  onMessageEvent: P,
@@ -4119,10 +4119,11 @@ function qx({
4119
4119
  if (!o || !m || T)
4120
4120
  return;
4121
4121
  if (re.current === m) {
4122
- if ($e)
4123
- return;
4124
4122
  re.current = null;
4123
+ return;
4125
4124
  }
4125
+ if ($e)
4126
+ return;
4126
4127
  if (Pe.current === m) {
4127
4128
  Pe.current = null, se.current = m;
4128
4129
  return;