Skip to content

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

chore(replay): clean up unused import and reformat error chain

Steven Enamakelf3fc5c542986
diff --git a/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs b/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs
index 6025f84c2b..f7c9f36045 100644
--- a/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/replay/ops.rs
@@ -32,9 +32,9 @@ pub(crate) async fn read_run_status(
run_id: &str,
) -> anyhow::Result<Option<HarnessRunStatus>> {
let store = FileStatusStore::new(open_session_stores(workspace).kv);
- replay::read_run_status(&store, run_id).await.map_err(|e| {
- anyhow::anyhow!("[agent] replay read_run_status failed run_id={run_id}: {e}")
- })
+ replay::read_run_status(&store, run_id)
+ .await
+ .map_err(|e| anyhow::anyhow!("[agent] replay read_run_status failed run_id={run_id}: {e}"))
}
/// Active runs, optionally filtered by `thread_id` and/or `root_run_id`.
diff --git a/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs b/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs
index dc789d7b13..479936c8c6 100644
--- a/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs
@@ -40,8 +40,6 @@ use crate::core::{ControllerSchema, FieldSchema, TypeSchema};
use super::ops::{list_active_runs, read_run_events_page, read_run_status};
use tinyagents_harness::observability::replay::{DEFAULT_EVENTS_LIMIT, MAX_EVENTS_LIMIT};
-use super::ops::{
-};
const NAMESPACE: &str = "agent";