From d49785cb258ad383be480d1249a5f7eb02a764cb Mon Sep 17 00:00:00 2001 From: William Valentin Date: Fri, 20 Mar 2026 14:05:59 -0700 Subject: [PATCH] fix: filter dashboard activity feed events --- cmd/web-ui/static/app.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/web-ui/static/app.js b/cmd/web-ui/static/app.js index d3e2372..57c900e 100644 --- a/cmd/web-ui/static/app.js +++ b/cmd/web-ui/static/app.js @@ -2142,7 +2142,10 @@ dashboardState.toolCounts[t.name] = t.count; } - const events = (recentData.events || []).slice().reverse(); + const events = (recentData.events || []) + .filter(isAgentTimelineEvent) + .slice() + .reverse(); for (const evt of events) { const id = getRecordID(evt); if (id && !dashboardState.recentEventIDs.has(id)) { @@ -2224,6 +2227,13 @@ renderSummaryCards(); } + if (!isAgentTimelineEvent(msg.data)) { + if (dashboardState.timeseries && dashboardState.window === '1h') { + appendToCurrentBucket(msg.data); + } + return; + } + const id = getRecordID(msg.data); if (id && !dashboardState.recentEventIDs.has(id)) { dashboardState.recentEventIDs.add(id);