Skip to content

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

test(attachments): assert full upload path in pdf fallback prompt

Steven Enamakel0f413b222a23
diff --git a/crates/openhuman-core/src/attachments/provider_routing_tests.rs b/crates/openhuman-core/src/attachments/provider_routing_tests.rs
index 683419e9f7..e185abd692 100644
--- a/crates/openhuman-core/src/attachments/provider_routing_tests.rs
+++ b/crates/openhuman-core/src/attachments/provider_routing_tests.rs
@@ -353,7 +353,10 @@ async fn pdf_metadata_fallback_is_cacheable_without_the_documents_feature() {
assert_eq!(calls.len(), 2);
let fallback = calls[0].1.messages[0].text();
assert!(fallback.contains("[FILE-ATTACHED:"), "{fallback}");
- assert!(fallback.contains("name=\"brief.pdf\""), "{fallback}");
+ assert!(
+ fallback.contains("name=\"uploads/thread/id/brief.pdf\""),
+ "{fallback}"
+ );
assert!(path
.parent()
.unwrap()