Skip to content

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

test(session_host): relax redaction assertion to substring match

Steven Enamakelc55d456e51f0
diff --git a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
index 700134c8b8..e65eb66eef 100644
--- a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
@@ -267,7 +267,9 @@ async fn credential_redaction_survives_resume() {
.filter(|message| matches!(message, Message::User(_)))
.map(Message::text)
.collect();
- assert!(resumed_users.iter().any(|message| message == &redacted));
+ assert!(resumed_users
+ .iter()
+ .any(|message| message.contains(&redacted)));
assert!(resumed_users
.iter()
.all(|message| !message.contains(&secret)));