Skip to content

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

Fix case-sensitive harness match in coverage filter

Cursor Agent5a4d3791d333
diff --git a/cli/beacon/cmd/token_usage.go b/cli/beacon/cmd/token_usage.go
index 33caf6e3..ebd66e41 100644
--- a/cli/beacon/cmd/token_usage.go
+++ b/cli/beacon/cmd/token_usage.go
@@ -123,7 +123,7 @@ func runTokenCoverage(cmd *cobra.Command, logPath string, query dashboard.EventQ
if want != "" {
scopedEvents := events[:0]
for _, event := range events {
- if asymptoteobserve.NormalizeHarnessName(event.Harness.Name) == want {
+ if strings.EqualFold(asymptoteobserve.NormalizeHarnessName(event.Harness.Name), want) {
scopedEvents = append(scopedEvents, event)
}
}
@@ -151,7 +151,7 @@ func runTokenCoverage(cmd *cobra.Command, logPath string, query dashboard.EventQ
if want != "" {
kept := installed[:0]
for _, name := range installed {
- if asymptoteobserve.NormalizeHarnessName(name) == want {
+ if strings.EqualFold(asymptoteobserve.NormalizeHarnessName(name), want) {
kept = append(kept, name)
}
}