Skip to content

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

test(session-host): simplify grounded close redaction assertion

Steven Enamakel545474a80b88
diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
index 3e2f1fe812..ca688a9c1f 100644
--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
@@ -150,12 +150,10 @@ async fn grounded_close_uses_the_selected_model_and_keeps_verifier_out_of_contex
"close requests preserve the transcript roundtrip for attachments, reasoning and tool rows"
);
assert!(
- requests
- .iter()
- .all(|request| request.messages.iter().any(|message| {
- matches!(message, Message::User(_)) && message.text().contains("[REDACTED]")
- })),
- "grounded close keeps the screened prefix on every follow-up request"
+ history.iter().any(|message| {
+ matches!(message, Message::User(_)) && message.text().contains("[REDACTED]")
+ }),
+ "grounded close leaves the screened transcript prefix intact"
);
}