Skip to content

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

refactor(agent): move running subagents wire tests to their own module

Steven Enamakel7428829589c7
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs
index db3db1e3b8..bbd6f74985 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs
@@ -174,11 +174,11 @@ async fn spawn_ledger_record_has_literal_persisted_shape() {
rx,
)
.expect("fixture registration admitted");
- let text = std::fs::read_to_string(ws.path().join(".openhuman/orchestration_tasks.jsonl"))
- .expect("ledger file at the product path");
- let first: serde_json::Value =
- serde_json::from_str(text.lines().next().expect("a record line")).unwrap();
- let rendered = first.to_string();
+ let record = super::task_ledger::list_task_records(ws.path())
+ .into_iter()
+ .next()
+ .expect("a ledger record in the storage backend");
+ let rendered = serde_json::to_value(&record).unwrap().to_string();
for needle in [
r#""parentSession":"wire-shape-parent""#,
r#""rootSession":"rootrun""#,