Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(context_breakdown): log serialization errors in config fingerprint

Steven Enamakel8cf791e92e3d
diff --git a/crates/openhuman-core/src/agent/context_breakdown.rs b/crates/openhuman-core/src/agent/context_breakdown.rs
index 5fec781b23..30f03de4df 100644
--- a/crates/openhuman-core/src/agent/context_breakdown.rs
+++ b/crates/openhuman-core/src/agent/context_breakdown.rs
@@ -79,7 +79,10 @@ fn config_fingerprint(config: &Config) -> u64 {
// Unserializable config (should not happen) still needs a stable
// fingerprint so the cache degrades to "always recompute" rather
// than panicking.
- Err(_) => 0u8.hash(&mut hasher),
+ Err(err) => {
+ eprintln!("DEBUG config_fingerprint serialize error: {err}");
+ 0u8.hash(&mut hasher)
+ }
}
hasher.finish()
}