@langgraph-js/sdk 4.1.0 → 4.1.1
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.
|
@@ -246,7 +246,7 @@ export const createChatStore = (initClientName, config, context = {}) => {
|
|
|
246
246
|
refreshGraph();
|
|
247
247
|
refreshTools();
|
|
248
248
|
const currentThread = activeClient.getCurrentThread();
|
|
249
|
-
if (currentThread && (currentThread.status === "
|
|
249
|
+
if (currentThread && (currentThread.status === "busy" || currentThread.status === "pending")) {
|
|
250
250
|
await activeClient.resetStream();
|
|
251
251
|
}
|
|
252
252
|
// 检查是否处于中断状态
|
package/package.json
CHANGED
|
@@ -301,7 +301,7 @@ export const createChatStore = (initClientName: string, config: Partial<LangGrap
|
|
|
301
301
|
refreshTools();
|
|
302
302
|
|
|
303
303
|
const currentThread = activeClient.getCurrentThread() as any;
|
|
304
|
-
if (currentThread && (currentThread.status === "
|
|
304
|
+
if (currentThread && (currentThread.status === "busy" || currentThread.status === "pending")) {
|
|
305
305
|
await activeClient.resetStream();
|
|
306
306
|
}
|
|
307
307
|
|