Skip to content

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

test(threads): assert typed image uploads persist no staging marker

Steven Enamakelef573f50b2f6
diff --git a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
index 55f6571c21..74e51bedb7 100644
--- a/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
@@ -346,6 +346,10 @@ async fn typed_attachment_is_staged_like_a_marker_and_leaves_the_text_clean() {
.value
.data
.unwrap();
+ assert_eq!(
+ saved.content, "look",
+ "modern typed image uploads must not persist a staging marker"
+ );
let (text, files) = crate::agent::attachments::parse(&saved.content);
assert_eq!(text.trim(), "look");
assert_eq!(files.len(), 1);