@lobehub/lobehub 2.0.0-next.206 → 2.0.0-next.207

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 2.0.0-next.207](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.206...v2.0.0-next.207)
6
+
7
+ <sup>Released on **2026-01-04**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Slove the old agents open profiles error problem.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Slove the old agents open profiles error problem, closes [#11204](https://github.com/lobehub/lobe-chat/issues/11204) ([7d650b6](https://github.com/lobehub/lobe-chat/commit/7d650b6))
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 2.0.0-next.206](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.205...v2.0.0-next.206)
6
31
 
7
32
  <sup>Released on **2026-01-04**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Slove the old agents open profiles error problem."
6
+ ]
7
+ },
8
+ "date": "2026-01-04",
9
+ "version": "2.0.0-next.207"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.206",
3
+ "version": "2.0.0-next.207",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent 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",
@@ -33,7 +33,9 @@ const EditorCanvas = memo(() => {
33
33
  const editorData = config?.editorData;
34
34
  const systemRole = config?.systemRole;
35
35
  const updateConfig = useAgentStore((s) => s.updateAgentConfig);
36
- const [initialLoad] = useState(editorData || EMPTY_EDITOR_STATE);
36
+ const [initialLoad] = useState(
37
+ editorData === undefined || editorData?.root === undefined ? EMPTY_EDITOR_STATE : editorData,
38
+ );
37
39
  const mentionOptions = useMentionOptions();
38
40
  const editor = useProfileStore((s) => s.editor);
39
41
  const handleContentChange = useProfileStore((s) => s.handleContentChange);
@@ -89,7 +91,7 @@ const EditorCanvas = memo(() => {
89
91
  // Don't init if streaming is in progress
90
92
  if (streamingInProgress) return;
91
93
  try {
92
- if (editorData) {
94
+ if (editorData && editorData?.root !== undefined) {
93
95
  editor.setDocument('json', editorData);
94
96
  } else if (systemRole) {
95
97
  editor.setDocument('markdown', systemRole);
@@ -25,7 +25,7 @@ import { type EnabledProviderWithModels } from '@/types/aiProvider';
25
25
 
26
26
  const STORAGE_KEY = 'MODEL_SWITCH_PANEL_WIDTH';
27
27
  const STORAGE_KEY_MODE = 'MODEL_SWITCH_PANEL_MODE';
28
- const DEFAULT_WIDTH = 320;
28
+ const DEFAULT_WIDTH = 430;
29
29
  const MIN_WIDTH = 280;
30
30
  const MAX_WIDTH = 600;
31
31
  const MAX_PANEL_HEIGHT = 460;