perf(replay): threats-only by default, no duplicate first-page or summary fetch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Sonnet 5.5 committed 2026-11-23 10:15:50 -03:00
1 parent 19bec553f4
commit 91cdb4acbf
12 files changed
+111 -23

No files matched your search

+12
View File
@@ -71,10 +71,22 @@ type EventsPage struct {
Enabled bool `json:"enabled"`
}
// catSet turns a comma list into a set. A leading "!" negates it: the set is
// then every known category except those listed (for example "!ok").
func catSet(list string) map[string]bool {
if list == "" {
return nil
}
if rest, neg := strings.CutPrefix(list, "!"); neg {
skip := catSet(rest)
m := map[string]bool{}
for _, c := range core.Categories {
if !skip[string(c)] {
m[string(c)] = true
}
}
return m
}
m := map[string]bool{}
start := 0
for i := 0; i <= len(list); i++ {