fix: 工具卡片错误信息显示、清理死代码
1. 工具调用失败时显示错误原因(之前只有状态标签没有具体错误) 2. 删除 formatFileSize 死代码(仅在已移除的结果渲染中使用) 3. 清理 updateLastAssistantMessage 未使用的 stats 参数
This commit is contained in:
@@ -2062,6 +2062,15 @@ html, body {
|
||||
color: var(--critical);
|
||||
}
|
||||
|
||||
.tool-call-error {
|
||||
padding: 6px 14px;
|
||||
font-size: 12px;
|
||||
color: var(--critical);
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
background: rgba(220, 53, 69, 0.04);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* ── 聊天区域工具调用历史(可折叠)── */
|
||||
.tool-calls-history {
|
||||
margin: 8px 0;
|
||||
|
||||
Reference in New Issue
Block a user