Skip to content

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

test: clear storage cache between harness turns

Steven Enamakel753277316a7f
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 0b1a4b868d..eaf5c74e13 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -1198,6 +1198,7 @@ async fn run_managed_capture_turn(
// Session transcript stores and their SQLite backend are also cached by
// workspace path; release them before the next repetition removes it.
openhuman_core::storage::sessions::release_workspace(&workspace_dir);
+ openhuman_core::storage::clear();
with_captured_proxy_requests(|requests| requests.clone())
}
@@ -1368,9 +1369,6 @@ async fn managed_host_requests_repeat_with_the_same_capture_identity_inner() {
prior_count = files.len();
batches.push(batch);
}
- for (i, (a, b)) in batches[0].iter().zip(batches[1].iter()).enumerate() {
- if a != b { std::fs::write(format!("/tmp/claude-1000/dbg_a{i}.json"), a).unwrap(); std::fs::write(format!("/tmp/claude-1000/dbg_b{i}.json"), b).unwrap(); }
- }
assert!(
batches[0] == batches[1],
"raw request bytes changed between restored identical turns"