@langgraph-js/sdk 1.3.1 → 1.3.2

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.
@@ -105,6 +105,8 @@ export const createChatStore = (initClientName, config, context = {}) => {
105
105
  // console.log(event.data);
106
106
  // 创建新流程时,默认为 __start__
107
107
  currentNodeName.set("__start__");
108
+ if (event.type === "done")
109
+ loading.set(false);
108
110
  // 创建新会话时,需要自动刷新历史面板
109
111
  return refreshHistoryList();
110
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
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",
@@ -111,6 +111,7 @@ export const createChatStore = (
111
111
  // console.log(event.data);
112
112
  // 创建新流程时,默认为 __start__
113
113
  currentNodeName.set("__start__");
114
+ if (event.type === "done") loading.set(false);
114
115
  // 创建新会话时,需要自动刷新历史面板
115
116
  return refreshHistoryList();
116
117
  }