diff --git a/webui/src/components/settings/SettingsView.tsx b/webui/src/components/settings/SettingsView.tsx index 2b64fbba..77b7b79b 100644 --- a/webui/src/components/settings/SettingsView.tsx +++ b/webui/src/components/settings/SettingsView.tsx @@ -3703,8 +3703,7 @@ function AutomationDetailPanel({ ? `#/chat/${encodeURIComponent(job.origin.session_key)}` : null; const history = job.state.run_history ?? []; - const latestRun = history[history.length - 1]; - const lastResult = automationLastResult(job, latestRun, locale, tx); + const runSummary = automationRunSummary(job, history, locale, tx); const needsRecreation = automationNeedsRecreation(job); const created = job.created_at_ms ? fmtDateTime(job.created_at_ms, locale) : null; const updated = job.updated_at_ms ? fmtDateTime(job.updated_at_ms, locale) : null; @@ -3782,16 +3781,16 @@ function AutomationDetailPanel({ {formatAutomationNext(job, tx)} - {lastResult.primary} + {runSummary.primary} @@ -3966,20 +3965,30 @@ function AutomationRunHistory({ }) { if (!history.length) return null; const visible = [...history].reverse(); + const issueCount = history.filter((run) => automationRunNeedsAttention(run.status)).length; + const summary = tx("settings.automations.history.summary", "Runs: {{total}} · Issues: {{issues}}", { + total: history.length, + issues: issueCount, + }); return (