teodor-new-chat-ui 4.3.276 → 4.3.278
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 +4 -5
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
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 && (
|
|
4027
|
-
}, [De
|
|
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,
|
|
@@ -4116,12 +4116,11 @@ function qx({
|
|
|
4116
4116
|
[gt]
|
|
4117
4117
|
);
|
|
4118
4118
|
Tt(() => {
|
|
4119
|
-
if (!o || !m || T)
|
|
4119
|
+
if (!o || !m || T || $e)
|
|
4120
4120
|
return;
|
|
4121
4121
|
if (re.current === m) {
|
|
4122
|
-
if ($e)
|
|
4123
|
-
return;
|
|
4124
4122
|
re.current = null;
|
|
4123
|
+
return;
|
|
4125
4124
|
}
|
|
4126
4125
|
if (Pe.current === m) {
|
|
4127
4126
|
Pe.current = null, se.current = m;
|