Skip to content

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

test(session_host): drop redaction assertions from driver tests

Steven Enamakel79ac5a23c893
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 ca688a9c1f..f9de522431 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
@@ -71,7 +71,7 @@ async fn grounded_close_uses_the_selected_model_and_keeps_verifier_out_of_contex
let history = vec![
Message::User(UserMessage {
content: vec![
- ContentBlock::Text("inspect [REDACTED] ".into()),
+ ContentBlock::Text("inspect ".into()),
ContentBlock::Image(ImageRef {
url: "data:image/png;base64,AAAA".into(),
mime_type: Some("image/png".into()),
@@ -149,12 +149,6 @@ async fn grounded_close_uses_the_selected_model_and_keeps_verifier_out_of_contex
expected_history,
"close requests preserve the transcript roundtrip for attachments, reasoning and tool rows"
);
- assert!(
- history.iter().any(|message| {
- matches!(message, Message::User(_)) && message.text().contains("[REDACTED]")
- }),
- "grounded close leaves the screened transcript prefix intact"
- );
}
#[tokio::test]
diff --git a/crates/openhuman-core/src/agent/session_host/driver_tests.rs b/crates/openhuman-core/src/agent/session_host/driver_tests.rs
index 7caec311aa..0b25d057c1 100644
--- a/crates/openhuman-core/src/agent/session_host/driver_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver_tests.rs
@@ -343,10 +343,7 @@ fn synthesized_block_is_appended_once_and_replaces_the_final_row() {
required_keys: vec!["status".into()],
};
let mut output = "Done.".to_string();
- let mut history = vec![
- Message::user("go with [REDACTED] credential"),
- Message::assistant("Done."),
- ];
+ let mut history = vec![Message::user("go"), Message::assistant("Done.")];
append_synthesized_block(&mut output, &mut history, &contract);
assert!(tinyagents_harness::config::output_satisfies_contract(
@@ -357,11 +354,6 @@ fn synthesized_block_is_appended_once_and_replaces_the_final_row() {
2,
"the final row is replaced, not duplicated"
);
- assert_eq!(
- history[0].text(),
- "go with [REDACTED] credential",
- "required-output repair keeps the screened user prefix"
- );
let once = output.clone();
append_synthesized_block(&mut output, &mut history, &contract);