refactor(session): 简化并统一会话系统消息的处理逻辑#62
Merged
Merged
Conversation
Contributor
hqwlkj
commented
May 14, 2026
- 移除多余的 modelConfig 属性,改用 message.content 直接展示模型和思考力度信息
- 优化 App.tsx 中系统消息内容的格式,加入推理力度显示
- MessageView.tsx 改为直接渲染 message.content,简化展示逻辑
- 在 session.ts 中整合 addSessionSystemMessage 方法,避免重复定义
- 构建系统消息时支持传入 meta 信息,增强消息元数据灵活性
- 移除多余的 modelConfig 属性,改用 message.content 直接展示模型和思考力度信息 - 优化 App.tsx 中系统消息内容的格式,加入推理力度显示 - MessageView.tsx 改为直接渲染 message.content,简化展示逻辑 - 在 session.ts 中整合 addSessionSystemMessage 方法,避免重复定义 - 构建系统消息时支持传入 meta 信息,增强消息元数据灵活性
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.