@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 === "running" || currentThread.status === "pending")) {
249
+ if (currentThread && (currentThread.status === "busy" || currentThread.status === "pending")) {
250
250
  await activeClient.resetStream();
251
251
  }
252
252
  // 检查是否处于中断状态
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "The UI SDK for LangGraph - seamlessly integrate your AI agents with frontend interfaces",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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 === "running" || currentThread.status === "pending")) {
304
+ if (currentThread && (currentThread.status === "busy" || currentThread.status === "pending")) {
305
305
  await activeClient.resetStream();
306
306
  }
307
307