@langgraph-js/sdk 4.3.7 → 4.3.8

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.
@@ -122,6 +122,9 @@ export const createChatStore = (initClientName, config, context = {}) => {
122
122
  // 自动激活最近的历史会话
123
123
  await activateSession(syncedSessions[0].sessionId);
124
124
  }
125
+ else {
126
+ await createNewSession();
127
+ }
125
128
  }
126
129
  else {
127
130
  // 创建新会话
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
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",
@@ -154,6 +154,8 @@ export const createChatStore = (initClientName: string, config: Partial<LangGrap
154
154
  const syncedSessions = sessions.get();
155
155
  // 自动激活最近的历史会话
156
156
  await activateSession(syncedSessions[0].sessionId);
157
+ } else {
158
+ await createNewSession();
157
159
  }
158
160
  } else {
159
161
  // 创建新会话