fix: make sentinel check titles user-facing

This commit is contained in:
Codex
2026-06-28 07:28:17 +00:00
parent bdb00ff616
commit 7eedf05a85
2 changed files with 111 additions and 108 deletions
@@ -654,8 +654,11 @@ function clamp(value, min, max) {
}
function rootCauseText(item) {
if (item?.rootCause) return `根因: ${item.rootCause}`;
return item?.checkSummaryZh || item?.summary || item?.evidenceSummary || "尚未记录根因,等待下一次 OTel/报告归因。";
if (item?.checkSummaryZh) return item.checkSummaryZh;
if (item?.summary) return item.summary;
if (item?.evidenceSummary) return item.evidenceSummary;
if (item?.rootCause) return "已记录内部根因,见报告详情。";
return "尚未记录用户可见问题摘要。";
}
function findingTitle(item) {