Skip to content

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

chore: files changed crates/openhuman-core/src/flows/schemas_tests.rs

Steven Enamakel449b050c6e25
diff --git a/crates/openhuman-core/src/flows/schemas_tests.rs b/crates/openhuman-core/src/flows/schemas_tests.rs
index d8cdcf2cc9..58683f895a 100644
--- a/crates/openhuman-core/src/flows/schemas_tests.rs
+++ b/crates/openhuman-core/src/flows/schemas_tests.rs
@@ -18,6 +18,21 @@ fn run_schema_advertises_both_input_channels() {
);
}
+#[test]
+fn run_detached_schema_description_has_normal_spacing_and_input_rules() {
+ let schema = schemas("run_detached");
+ let inputs = schema.inputs.iter().find(|field| field.name == "inputs").unwrap();
+
+ assert!(inputs.comment.contains("graph.inputs"), "{}", inputs.comment);
+ assert!(inputs.comment.contains("Validated synchronously"), "{}", inputs.comment);
+ assert!(inputs.comment.contains("Distinct from `input`"), "{}", inputs.comment);
+ assert!(
+ !inputs.comment.contains(" "),
+ "the rendered schema must not contain continuation indentation: {:?}",
+ inputs.comment
+ );
+}
+
#[test]
fn read_declared_inputs_accepts_absent_null_and_object() {
let mut params = Map::new();