Skip to content

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

test(agent-harness): drop redundant purge and storage reset from e2e turn

Steven Enamakel6bf518cdddd7
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 3e4e240090..e653f25394 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -1150,11 +1150,6 @@ async fn run_managed_capture_turn(
"mock inference responses did not all complete successfully: {completed:?}"
);
drop(events);
- // The process default context keeps its storage handles open on the profile
- // the fixture deletes next, so purge the conversation (transcripts included)
- // through the product instead of relying on the files going away.
- let purge = post_json_rpc(&stack.rpc_base, 703, "openhuman.threads_purge", json!({})).await;
- assert_no_jsonrpc_error(&purge, "threads_purge after the managed capture turn");
stack.shutdown_and_wait().await;
// The bare test router dispatches RPC under the process default context
// that `boot_stack` initialized. Its cached web-chat agent outlives a router
@@ -1168,10 +1163,6 @@ 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())
}