fix(web): 会话步骤明细里的能力 ID 换成能力标题,与最终汇报一致(FIX-9)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-09-30 19:28:51 +08:00
1 parent c5987a9db3
commit 65a2ed7d49
2 files changed
+25 -2

No files matched your search

@@ -196,7 +196,9 @@ function ToolRow({ call, audit }: { call: ToolCallView; audit?: InvocationAudit
const [open, setOpen] = useState(false);
const meta = capabilityMeta(call.capabilityId);
const denied = isDenied(call);
const summary = denied ? deniedReason(call).text : toolSummary(call);
const raw = denied ? deniedReason(call).text : toolSummary(call);
// 旧会话的错误文字里带能力 ID / 原因码:和最终汇报一样换成能力标题与人话
const summary = raw ? humanizeReport(raw).text : raw;
return (
<li className="min-w-0">
<button
@@ -319,7 +321,7 @@ export function StepSummary({
key={a.key}
className="line-clamp-3 px-1 py-1 text-meta break-words whitespace-pre-wrap text-muted-foreground"
>
{a.text.trim()}
{humanizeReport(a.text.trim()).text}
</li>
),
)}