Agent Zero AI framework
warn/info/hint notifs in process grp
3clyp5041873c990570
diff --git a/webui/components/messages/process-group/process-group.css b/webui/components/messages/process-group/process-group.cssindex bb5e25e50..518d3e522 100644--- a/webui/components/messages/process-group/process-group.css+++ b/webui/components/messages/process-group/process-group.css@@ -268,6 +268,14 @@gap: 2px;}+.process-group-header .group-metrics .metric-notifications {+ font-weight: 600;+}++.process-group-header .group-metrics .metric-notifications .material-symbols-outlined {+ opacity: 0.85;+}+/* Legacy timestamp/duration (for backwards compatibility) */.process-group-header .group-timestamp {font-size: 0.65rem;diff --git a/webui/js/messages.js b/webui/js/messages.jsindex 695e7942a..25f57d2ce 100644--- a/webui/js/messages.js+++ b/webui/js/messages.js@@ -1228,6 +1228,7 @@ function createProcessGroup(id) {<span class="metric-time" title="Start time"><span class="material-symbols-outlined">schedule</span><span class="metric-value">--:--</span></span><span class="metric-steps" title="Steps"><span class="material-symbols-outlined">footprint</span><span class="metric-value">0</span></span><span class="metric-duration" title="Duration"><span class="material-symbols-outlined">timer</span><span class="metric-value">0s</span></span>+ <span class="metric-notifications" title="Warnings/Info/Hint" hidden><span class="material-symbols-outlined">notifications</span><span class="metric-value">0</span></span></span>`;@@ -1846,6 +1847,42 @@ function updateProcessGroupHeader(group) {const metricsEl = group.querySelector(".group-metrics");const isCompleted = group.classList.contains("process-group-completed");+ const notificationsEl = metricsEl?.querySelector(".metric-notifications");+ if (notificationsEl) {+ const counts = { warning: 0, info: 0, hint: 0 };+ steps.forEach((step) => {+ const stepType = step.getAttribute("data-type");+ if (Object.prototype.hasOwnProperty.call(counts, stepType)) {+ counts[stepType] += 1;+ }+ });++ const totalNotifications = counts.warning + counts.info + counts.hint;+ const countEl = notificationsEl.querySelector(".metric-value");+ notificationsEl.classList.remove("status-wrn", "status-inf", "status-hnt");++ if (totalNotifications > 0) {+ if (countEl) {+ countEl.textContent = totalNotifications.toString();+ }+ if (counts.warning > 0) {+ notificationsEl.classList.add("status-wrn");+ } else if (counts.info > 0) {+ notificationsEl.classList.add("status-inf");+ } else {+ notificationsEl.classList.add("status-hnt");+ }+ notificationsEl.hidden = false;+ notificationsEl.title = `Warnings: ${counts.warning}, Info: ${counts.info}, Hints: ${counts.hint}`;+ } else {+ if (countEl) {+ countEl.textContent = "0";+ }+ notificationsEl.hidden = true;+ notificationsEl.title = "Warnings/Info/Hint";+ }+ }+// If completed, don't update metricsif (isCompleted) {return;