Dev#1613
Merged
SengokuCola merged 9 commits intomainfrom May 2, 2026
Merged
Conversation
…aging support - Updated `uni_message_sender.py` to allow for private messaging by removing the mandatory group ID and adding user ID handling. - Enhanced chat history retrieval and clearing functions in `routes.py` and `service.py` to support both group and private chat scenarios. - Introduced a new `ChatScrollContext` for managing message scrolling and highlighting in the chat UI. - Created a `ListItemEditorHookFactory` for rendering a rich UI editor for list items in configuration settings, replacing the previous JSON text display. - Improved message serialization for consistent display in chat history. - Added detailed logging for chat history operations and error handling. Co-authored-by: Copilot <[email protected]>
…functions for memory operations - Implemented TuningTab component to handle tuning objectives, intensity, sample size, and evaluation settings. - Added UI elements for creating tuning tasks and displaying current configurations and recent tasks. - Introduced utility functions for normalizing and formatting memory operation data, including feedback actions and delete operations.
Co-authored-by: Copilot <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (46)
高层概览该PR进行了1.0.1版本发布,包括Docker部署简化、WebUI聊天系统的私聊/虚拟身份/富文本消息支持、Dashboard知识库管理UI完整实现,以及配置和依赖更新。 变更内容Docker构建和部署简化
WebUI聊天系统重构
Dashboard前端聊天功能升级
Dashboard基础组件和工具改进
知识库管理UI实现
文档和版本更新
序列图sequenceDiagram
participant User as 用户
participant Frontend as Dashboard<br/>前端
participant WsClient as WebSocket<br/>客户端
participant Backend as WebUI<br/>后端服务
participant DB as 数据库
rect rgba(100, 150, 200, 0.5)
Note over User,DB: 私聊消息流程(新增)
User->>Frontend: 输入消息 (私聊模式)
Frontend->>WsClient: openSession({user_id, 私聊标志})
WsClient->>Backend: session.open (channel_key=private:uid)
Backend->>Backend: 计算channel_key<br/>绑定私聊通道
User->>Frontend: 发送消息
Frontend->>Backend: POST /api/chat/send<br/>(user_id)
Backend->>DB: 保存消息<br/>(group_id=null, user_id)
Backend->>WsClient: 广播到 channel_key<br/>(private:uid)
WsClient->>Frontend: 接收消息事件
Frontend->>Frontend: 序列化为rich消息<br/>(message_type, segments)
Frontend->>User: 渲染消息 + at/reply段
end
rect rgba(150, 100, 200, 0.5)
Note over User,DB: 消息回复/at交互(新增)
User->>Frontend: 点击 reply 段
Frontend->>Frontend: useChatScroll<br/>()查找目标消息
Frontend->>Frontend: 滚动并高亮<br/>(chat-message-flash)
User->>Frontend: 悬停 at 段
Frontend->>Frontend: 显示@用户标识
end
rect rgba(200, 150, 100, 0.5)
Note over Backend,DB: 知识库导入进度<br/>(新增)
Backend->>Backend: 触发导入任务<br/>(import_progress)
Backend->>WsClient: 广播进度事件
WsClient->>Frontend: memory domain<br/>事件到达
Frontend->>Frontend: MemoryProgressClient<br/>路由事件
Frontend->>Frontend: 更新ImportTab<br/>进度指示器
User->>Frontend: 查看导入队列<br/>和分块状态
end
预估代码审查工作量🎯 4 (复杂) | ⏱️ ~50 分钟 该PR涉及多个复杂领域的相互关联改动:WebUI后端的聊天服务重构(300+行)需要理解channel-based路由、消息序列化和私聊支持的交互;Dashboard前端聊天功能升级(150+行)涉及富文本消息段、滚动上下文和虚拟身份同步逻辑;新增知识库管理UI(4个tab组件共2500+行)包含大量列表/分页/状态管理代码;Docker构建流程简化涉及多个CI配置和脚本变更。这些改动虽然分散在多个文件,但在逻辑、类型和API边界上紧密相关,需要逐个理解每个领域的设计意图。 可能相关的PR
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
zh-CN目标翻译作为常规 GitHub 编辑面;常规翻译以 Crowdin ->l10n_*PR 回流为准,详见docs/i18n.md请填写以下内容
(删除掉中括号内的空格,并替换为小写的x)
main分支 禁止修改,请确认本次提交的分支 不是main分支src/A_memorix,我确认已阅读src/A_memorix/MODIFICATION_POLICY.md,不涉及则无需勾选其他信息
Summary by CodeRabbit
发布说明
新功能
改进与优化