Skip to content

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

test(embed): find tool results after continuation preamble

Steven Enamakele2cddecc8367
diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rs
index aa2405b165..fe3a9b326a 100644
--- a/crates/openhuman-embed/tests/common/mod.rs
+++ b/crates/openhuman-embed/tests/common/mod.rs
@@ -123,7 +123,9 @@ pub fn tool_results(request: &wiremock::Request) -> String {
};
match m.get("role").and_then(|r| r.as_str()) {
Some("tool") => Some(content),
- Some("user") if content.starts_with(PROMPT_TOOL_RESULTS_PREFIX) => {
+ // The harness may prepend continuation guidance and
+ // the active user request before the tool-result block.
+ Some("user") if content.contains(PROMPT_TOOL_RESULTS_PREFIX) => {
Some(content)
}
_ => None,