From 0da83fa38bbe518f3618ea774d19dc7526455edd Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 1 Jun 2026 21:50:49 +0200 Subject: [PATCH] fix(#1023): read turn-stats db from harness_dir(), not state_dir() turn_stats.rs writes to harness_dir()/hyperhive-turn-stats.sqlite but stats.rs was reading from state_dir()/hyperhive-turn-stats.sqlite. These paths diverged when the harness/state split was introduced. The read side must match the write side. --- hive-ag3nt/src/stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive-ag3nt/src/stats.rs b/hive-ag3nt/src/stats.rs index 1731a20c..ae98ca7e 100644 --- a/hive-ag3nt/src/stats.rs +++ b/hive-ag3nt/src/stats.rs @@ -157,7 +157,7 @@ pub fn snapshot_default(window: Window) -> Snapshot { } fn default_path() -> PathBuf { - crate::paths::state_dir().join("hyperhive-turn-stats.sqlite") + crate::paths::harness_dir().join("hyperhive-turn-stats.sqlite") } fn empty_snapshot(window: Window) -> Snapshot {