Skip to content

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

fix: preserve literal image marker text

Steven Enamakele48c278df06a
diff --git a/crates/openhuman-core/src/agent/message_convert_tests.rs b/crates/openhuman-core/src/agent/message_convert_tests.rs
index 4355b81204..6fdad03297 100644
--- a/crates/openhuman-core/src/agent/message_convert_tests.rs
+++ b/crates/openhuman-core/src/agent/message_convert_tests.rs
@@ -46,9 +46,11 @@ fn native_image_round_trip_preserves_adjacent_text_for_claude_code() {
);
let line: serde_json::Value = serde_json::from_slice(&stdin).unwrap();
let content = line["message"]["content"].as_array().unwrap();
- assert_eq!(content[0]["text"], "before ");
+ // The Claude Code bridge separates typed source blocks with newlines;
+ // retain the text/image/text order rather than collapsing those boundaries.
+ assert_eq!(content[0]["text"], "before \n");
assert_eq!(content[1]["type"], "image");
- assert_eq!(content[2]["text"], " after");
+ assert_eq!(content[2]["text"], "\n after");
}
#[test]
@@ -70,7 +72,8 @@ fn native_image_round_trip_preserves_literal_private_marker_text() {
let content = line["message"]["content"].as_array().unwrap();
assert_eq!(content[0]["text"], "literal ");
assert_eq!(content[1]["text"], "[OH_IMAGE:data:image/png;base64,QUJD]");
- assert_eq!(content[2]["type"], "image");
+ assert_eq!(content[2]["text"], "\n");
+ assert_eq!(content[3]["type"], "image");
}
// An image-only turn must not emit an empty text block (some providers 400
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 9483a5694f..dd8e22ce73 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 9483a5694f51baf609700958177863c963d83a06
+Subproject commit dd8e22ce734f2d930f0a6c0973d8ae2e59283617