@lobehub/lobehub 2.1.13 → 2.1.14

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.1.14](https://github.com/lobehub/lobe-chat/compare/v2.1.13...v2.1.14)
6
+
7
+ <sup>Released on **2026-02-04**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix cannot uncompressed messages.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix cannot uncompressed messages, closes [#12086](https://github.com/lobehub/lobe-chat/issues/12086) ([ccfaec2](https://github.com/lobehub/lobe-chat/commit/ccfaec2))
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.1.13](https://github.com/lobehub/lobe-chat/compare/v2.1.12...v2.1.13)
6
31
 
7
32
  <sup>Released on **2026-02-03**</sup>
@@ -45,7 +45,7 @@ export class LinuxMenu extends BaseMenuPlatform implements IMenuPlatform {
45
45
  this.buildAndSetAppMenu(options);
46
46
  }
47
47
 
48
- // --- 私有方法:定义菜单模板和逻辑 ---
48
+ // --- Private methods: define menu templates and logic ---
49
49
 
50
50
  private getAppMenuTemplate(options?: MenuOptions): MenuItemConstructorOptions[] {
51
51
  const showDev = isDev || options?.showDevItems;
@@ -48,23 +48,23 @@ export class MacOSMenu extends BaseMenuPlatform implements IMenuPlatform {
48
48
  }
49
49
 
50
50
  refresh(options?: MenuOptions): void {
51
- // 重建Application menu
51
+ // Rebuild Application menu
52
52
  this.buildAndSetAppMenu(options);
53
- // 如果托盘菜单存在,也重建它(如果需要动态更新)
53
+ // If tray menu exists, rebuild it as well (if dynamic update is needed)
54
54
  // this.trayMenu = this.buildTrayMenu();
55
- // 需要考虑如何更新现有托盘图标的菜单
55
+ // Need to consider how to update the menu for existing tray icons
56
56
  }
57
57
 
58
- // --- 私有方法:定义菜单模板和逻辑 ---
58
+ // --- Private methods: define menu templates and logic ---
59
59
 
60
60
  private getAppMenuTemplate(options?: MenuOptions): MenuItemConstructorOptions[] {
61
61
  const appName = app.getName();
62
62
  const showDev = isDev || options?.showDevItems;
63
- // 创建命名空间翻译函数
63
+ // Create namespaced translation function
64
64
  const t = this.app.i18n.ns('menu');
65
65
 
66
- // 添加调试日志
67
- // console.log('[MacOSMenu] 菜单渲染, i18n实例:', !!this.app.i18n);
66
+ // Add debug logging
67
+ // console.log('[MacOSMenu] Menu rendering, i18n instance:', !!this.app.i18n);
68
68
 
69
69
  const template: MenuItemConstructorOptions[] = [
70
70
  {
@@ -324,7 +324,7 @@ export class MacOSMenu extends BaseMenuPlatform implements IMenuPlatform {
324
324
  },
325
325
  {
326
326
  click: () => {
327
- // @ts-expect-error cache 目录好像暂时不在类型定义里
327
+ // @ts-expect-error cache directory seems to be temporarily missing from type definitions
328
328
  const cachePath = app.getPath('cache');
329
329
 
330
330
  const updaterCachePath = path.join(cachePath, `${app.getName()}-updater`);
@@ -43,7 +43,7 @@ export class WindowsMenu extends BaseMenuPlatform implements IMenuPlatform {
43
43
 
44
44
  refresh(options?: MenuOptions): void {
45
45
  this.buildAndSetAppMenu(options);
46
- // 如果有必要更新托盘菜单,可以在这里添加逻辑
46
+ // If it's necessary to update tray menu, logic can be added here
47
47
  }
48
48
 
49
49
  private getAppMenuTemplate(options?: MenuOptions): MenuItemConstructorOptions[] {
package/changelog/v2.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix cannot uncompressed messages."
6
+ ]
7
+ },
8
+ "date": "2026-02-04",
9
+ "version": "2.1.14"
10
+ },
2
11
  {
3
12
  "children": {},
4
13
  "date": "2026-02-03",
@@ -643,6 +643,7 @@ table messages {
643
643
  thread_id [name: 'messages_thread_id_idx']
644
644
  agent_id [name: 'messages_agent_id_idx']
645
645
  group_id [name: 'messages_group_id_idx']
646
+ message_group_id [name: 'messages_message_group_id_idx']
646
647
  }
647
648
  }
648
649
 
@@ -32,6 +32,8 @@
32
32
  "chatList.longMessageDetail": "View Details",
33
33
  "clearCurrentMessages": "Clear current session messages",
34
34
  "compressedHistory": "Compressed History",
35
+ "compression.cancel": "Uncompress",
36
+ "compression.cancelConfirm": "Are you sure you want to uncompress? This will restore the original messages.",
35
37
  "compression.history": "History",
36
38
  "compression.summary": "Summary",
37
39
  "confirmClearCurrentMessages": "You are about to clear the current session messages. Once cleared, they cannot be retrieved. Please confirm your action.",
@@ -32,6 +32,8 @@
32
32
  "chatList.longMessageDetail": "查看详情",
33
33
  "clearCurrentMessages": "清空当前会话消息",
34
34
  "compressedHistory": "压缩历史",
35
+ "compression.cancel": "取消压缩",
36
+ "compression.cancelConfirm": "确定要取消压缩吗?这将恢复原始消息。",
35
37
  "compression.history": "历史记录",
36
38
  "compression.summary": "摘要",
37
39
  "confirmClearCurrentMessages": "确认清空当前会话消息吗?清空后无法恢复",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
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",
@@ -0,0 +1 @@
1
+ CREATE INDEX IF NOT EXISTS "messages_message_group_id_idx" ON "messages" USING btree ("message_group_id");