From 3ccfc647f773a8dbf32f73dc7a556956c3f70583 Mon Sep 17 00:00:00 2001 From: damocles Date: Wed, 3 Jun 2026 21:11:16 +0200 Subject: [PATCH] fix(#1179): coalesce bash-task-* wake sources in stats --- hive-ag3nt/src/stats.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hive-ag3nt/src/stats.rs b/hive-ag3nt/src/stats.rs index 301d1c50..87f10a2b 100644 --- a/hive-ag3nt/src/stats.rs +++ b/hive-ag3nt/src/stats.rs @@ -245,7 +245,12 @@ fn snapshot(path: &Path, window: Window) -> Result { *acc.model_counts.entry(r.model.clone()).or_insert(0) += 1; all_durations.push(r.duration_ms.max(0)); - *wake_totals.entry(r.wake_from).or_insert(0) += 1; + let wake_key = if r.wake_from.starts_with("bash-task-") { + "bash-task".to_owned() + } else { + r.wake_from + }; + *wake_totals.entry(wake_key).or_insert(0) += 1; *result_totals.entry(r.result_kind).or_insert(0) += 1; model_set.insert(r.model);