Skip to content

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

test(agent-harness): assert released workspace drops session transcript

Steven Enamakel65d8e98b918a
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 191322ef90..3794ea11c5 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -1176,6 +1176,16 @@ 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);
+ let released_transcripts = openhuman_core::storage::sessions::workspace_transcripts(
+ "orchestrator",
+ &workspace_dir,
+ );
+ assert!(
+ released_transcripts
+ .root_for_thread("managed-capture-thread")
+ .is_none(),
+ "released workspace must not expose the prior session transcript"
+ );
with_captured_proxy_requests(|requests| requests.clone())
}