@lobehub/chat 0.162.5 → 0.162.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.162.6](https://github.com/lobehub/lobe-chat/compare/v0.162.5...v0.162.6)
6
+
7
+ <sup>Released on **2024-05-28**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix the default agent not work correctly on new device.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix the default agent not work correctly on new device, closes [#2699](https://github.com/lobehub/lobe-chat/issues/2699) ([e4c7536](https://github.com/lobehub/lobe-chat/commit/e4c7536))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 0.162.5](https://github.com/lobehub/lobe-chat/compare/v0.162.4...v0.162.5)
6
31
 
7
32
  <sup>Released on **2024-05-28**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.162.5",
3
+ "version": "0.162.6",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -117,16 +117,16 @@ export const createChatSlice: StateCreator<
117
117
  () => sessionService.getSessionConfig(INBOX_SESSION_ID),
118
118
  {
119
119
  onSuccess: (data) => {
120
- if (data) {
121
- set(
122
- {
123
- defaultAgentConfig: merge(get().defaultAgentConfig, defaultAgentConfig),
124
- isInboxAgentConfigInit: true,
125
- },
126
- false,
127
- 'initStore',
128
- );
120
+ set(
121
+ {
122
+ defaultAgentConfig: merge(get().defaultAgentConfig, defaultAgentConfig),
123
+ isInboxAgentConfigInit: true,
124
+ },
125
+ false,
126
+ 'initDefaultAgent',
127
+ );
129
128
 
129
+ if (data) {
130
130
  get().internal_dispatchAgentMap(INBOX_SESSION_ID, data, 'initInbox');
131
131
  }
132
132
  },
@@ -265,6 +265,6 @@ export const createSessionSlice: StateCreator<
265
265
  );
266
266
  },
267
267
  refreshSessions: async () => {
268
- await mutate(FETCH_SESSIONS_KEY);
268
+ await mutate([FETCH_SESSIONS_KEY, true]);
269
269
  },
270
270
  });