feat: 切换管理端聊天记录至智能体会话

- 管理端固定筛选 Agent 会话并拒绝旧 Bot 历史访问

- 筛选候选及页面语义切换为智能体并补充前后端回归测试
This commit is contained in:
2026-07-21 18:55:11 +08:00
parent f658f120e6
commit 9436cc5397
8 changed files with 414 additions and 21 deletions

View File

@@ -60,7 +60,7 @@ function resolveSenderName(item: any) {
if (item?.role === 'tool') {
return '工具调用';
}
return item?.role === 'assistant' ? '聊天助手' : '聊天用户';
return item?.role === 'assistant' ? '智能体' : '聊天用户';
}
async function handleLoadMore() {
@@ -152,7 +152,7 @@ async function handleCopyMessage(item: ChatTimeTimelineItem) {
{{ session?.title || '未命名会话' }}
</h2>
<span class="chat-history-detail__assistant-tag">
{{ session?.assistantName || '聊天助手' }}
{{ session?.assistantName || '智能体' }}
</span>
</div>
<div class="chat-history-detail__meta-row">