@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.
package/package.json
CHANGED
|
@@ -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
|
// 创建新会话
|