Skip to content

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

refactor(memory): simplify error conversion in erase_all

Steven Enamakelec906f480438
diff --git a/crates/openhuman-core/src/memory/ops.rs b/crates/openhuman-core/src/memory/ops.rs
index 93e062374f..522c1fb6c6 100644
--- a/crates/openhuman-core/src/memory/ops.rs
+++ b/crates/openhuman-core/src/memory/ops.rs
@@ -437,7 +437,7 @@ pub async fn erase_all(
tracing::info!(engine = %bound.id, "[memory:ops] erase_all: erasing the whole memory");
let report = bound.engine.erase(request).await.map_err(|error| {
tracing::warn!(engine = %bound.id, error = %error, "[memory:ops] erase_all failed");
- Error::from(error)
+ error
})?;
tracing::info!(
engine = %bound.id,