Skip to content

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

test(agent-harness): clear storage backend between e2e turns

Steven Enamakel223ecca7a083
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index e653f25394..465b4d6430 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -1163,6 +1163,10 @@ 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);
+ // The process-wide backend was opened on the profile the fixture is about to
+ // delete; drop it so the next boot installs one on the fresh profile instead
+ // of replaying this turn's transcript.
+ openhuman_core::storage::clear();
with_captured_proxy_requests(|requests| requests.clone())
}