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);