@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 +25 -0
- package/apps/desktop/src/main/menus/impls/linux.ts +1 -1
- package/apps/desktop/src/main/menus/impls/macOS.ts +8 -8
- package/apps/desktop/src/main/menus/impls/windows.ts +1 -1
- package/changelog/v2.json +9 -0
- package/docs/development/database-schema.dbml +1 -0
- package/locales/en-US/chat.json +2 -0
- package/locales/zh-CN/chat.json +2 -0
- package/package.json +1 -1
- package/packages/database/migrations/0076_add_message_group_index.sql +1 -0
- package/packages/database/migrations/meta/0076_snapshot.json +11270 -0
- package/packages/database/migrations/meta/_journal.json +8 -1
- package/packages/database/src/schemas/message.ts +1 -0
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Header/Nav.tsx +1 -2
- package/src/features/Conversation/Messages/CompressedGroup/index.tsx +26 -6
- package/src/features/Conversation/store/slices/message/action/state.ts +25 -0
- package/src/locales/default/chat.ts +3 -0
- package/src/server/routers/lambda/message.ts +37 -6
- package/src/server/services/message/index.ts +19 -0
- package/src/services/message/index.ts +14 -0
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
|
+
[](#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
|
-
//
|
|
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]
|
|
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
package/locales/en-US/chat.json
CHANGED
|
@@ -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.",
|
package/locales/zh-CN/chat.json
CHANGED
|
@@ -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.
|
|
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");
|