[PR #892] [MERGED] feat: 增加记忆功能,支持对话或自定义记忆 #804

Closed
opened 2026-03-02 03:41:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/892
Author: @codexu
Created: 2/4/2026
Status: Merged
Merged: 2/4/2026
Merged by: @codexu

Base: devHead: memory


📝 Commits (6)

  • 39b342a feat: 支持长期记忆管理
  • 7098552 feat: 优化记忆管理布局
  • 9eb80ea feat: Agent 读取记忆
  • a51a268 refactor: Agent 需要更加准确的行为才调用
  • 15fc071 feat: 偏好和记忆说明
  • 7c0f6b6 i18n: 补全缺失翻译

📊 Changes

35 files changed (+2682 additions, -667 deletions)

View changed files

📝 messages/en.json (+149 -20)
📝 messages/ja.json (+381 -22)
📝 messages/pt-BR.json (+118 -5)
📝 messages/zh-TW.json (+393 -14)
📝 messages/zh.json (+50 -0)
📝 src/app/core/record/chat/chat-input.tsx (+2 -5)
src/app/core/record/chat/chat-language.tsx (+0 -130)
📝 src/app/core/setting/chat/toolbar-settings.tsx (+1 -7)
📝 src/app/core/setting/config.tsx (+5 -0)
src/app/core/setting/memories/page.tsx (+21 -0)
📝 src/app/mobile/chat/components/chat-settings-drawer.tsx (+0 -4)
src/app/mobile/chat/components/language-selector.tsx (+0 -90)
src/components/memories/memory-form.tsx (+94 -0)
src/components/memories/memory-item.tsx (+35 -0)
src/components/memories/memory-list.tsx (+124 -0)
src/components/memories/memory-stats.tsx (+50 -0)
📝 src/db/index.ts (+2 -0)
src/db/memories.ts (+345 -0)
📝 src/lib/agent/react.ts (+200 -123)
📝 src/lib/agent/tools/chat-tools.ts (+24 -24)

...and 15 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/codexu/note-gen/pull/892 **Author:** [@codexu](https://github.com/codexu) **Created:** 2/4/2026 **Status:** ✅ Merged **Merged:** 2/4/2026 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `memory` --- ### 📝 Commits (6) - [`39b342a`](https://github.com/codexu/note-gen/commit/39b342a5354d12d786d90127ae30b1ed0f19c16a) feat: 支持长期记忆管理 - [`7098552`](https://github.com/codexu/note-gen/commit/7098552e5b1cde4da4227bb77ef5c90b8d249fc4) feat: 优化记忆管理布局 - [`9eb80ea`](https://github.com/codexu/note-gen/commit/9eb80eae606e68367d67c9fba80a87a876939669) feat: Agent 读取记忆 - [`a51a268`](https://github.com/codexu/note-gen/commit/a51a268347b545a521658953b3f86c1fb0bf827d) refactor: Agent 需要更加准确的行为才调用 - [`15fc071`](https://github.com/codexu/note-gen/commit/15fc071695353986f672a2a575379839b3fa521a) feat: 偏好和记忆说明 - [`7c0f6b6`](https://github.com/codexu/note-gen/commit/7c0f6b66d0ba3656d4ec8291335d6ab11c2604cf) i18n: 补全缺失翻译 ### 📊 Changes **35 files changed** (+2682 additions, -667 deletions) <details> <summary>View changed files</summary> 📝 `messages/en.json` (+149 -20) 📝 `messages/ja.json` (+381 -22) 📝 `messages/pt-BR.json` (+118 -5) 📝 `messages/zh-TW.json` (+393 -14) 📝 `messages/zh.json` (+50 -0) 📝 `src/app/core/record/chat/chat-input.tsx` (+2 -5) ➖ `src/app/core/record/chat/chat-language.tsx` (+0 -130) 📝 `src/app/core/setting/chat/toolbar-settings.tsx` (+1 -7) 📝 `src/app/core/setting/config.tsx` (+5 -0) ➕ `src/app/core/setting/memories/page.tsx` (+21 -0) 📝 `src/app/mobile/chat/components/chat-settings-drawer.tsx` (+0 -4) ➖ `src/app/mobile/chat/components/language-selector.tsx` (+0 -90) ➕ `src/components/memories/memory-form.tsx` (+94 -0) ➕ `src/components/memories/memory-item.tsx` (+35 -0) ➕ `src/components/memories/memory-list.tsx` (+124 -0) ➕ `src/components/memories/memory-stats.tsx` (+50 -0) 📝 `src/db/index.ts` (+2 -0) ➕ `src/db/memories.ts` (+345 -0) 📝 `src/lib/agent/react.ts` (+200 -123) 📝 `src/lib/agent/tools/chat-tools.ts` (+24 -24) _...and 15 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 03:41:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#804
No description provided.