Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Fix metric name computed before category normalization

Cursor Agentac6ecdd4b189
diff --git a/cli/beacon/internal/endpoint/dashboard/events.go b/cli/beacon/internal/endpoint/dashboard/events.go
index f90667cb..5f6d81ab 100644
--- a/cli/beacon/internal/endpoint/dashboard/events.go
+++ b/cli/beacon/internal/endpoint/dashboard/events.go
@@ -173,6 +173,7 @@ func normalizeDashboardEvent(event *schema.Event) {
if event.Event.Category == "" {
event.Event.Category = inferEventCategory(event.Event.Action)
}
+ metricName = metricEventName(event)
if event.Event.Category == "metric" && (event.Event.Action == "" || event.Event.Action == "metric.observed") {
event.Event.Action = metricName
if event.Event.Action == "" {