Skip to content

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

fix(ops): handle empty input in validation logic

Steven Enamakel16fdc3181697
diff --git a/crates/openhuman-core/src/flows/ops.rs b/crates/openhuman-core/src/flows/ops.rs
index 5a350721a9..3941921a79 100644
--- a/crates/openhuman-core/src/flows/ops.rs
+++ b/crates/openhuman-core/src/flows/ops.rs
@@ -38,7 +38,6 @@ use std::sync::{Arc, LazyLock};
use chrono::Utc;
use serde_json::{json, Value};
-use sha2::{Digest, Sha256};
use tinyflows::model::{NodeKind, TriggerKind, WorkflowGraph};
// The save/run safety predicates are `tinyflows-catalog`'s: whether a graph
// fires unattended, whether it can act on the world, whether it has anything to
diff --git a/crates/openhuman-core/src/flows/ops/validation.rs b/crates/openhuman-core/src/flows/ops/validation.rs
index b0727427c6..6d2d13994b 100644
--- a/crates/openhuman-core/src/flows/ops/validation.rs
+++ b/crates/openhuman-core/src/flows/ops/validation.rs
@@ -61,9 +61,7 @@ pub(crate) fn max_sub_workflow_depth(graph: &WorkflowGraph) -> u64 {
// stable code, and what keeps a rename upstream a compile error here rather
// than a silently-passing `contains`.
#[cfg(test)]
-pub(crate) use tinyflows::compat::{
- UNSUPPORTED_MAIN_PORT_CONDITIONAL_FAN_IN, UNSUPPORTED_NESTED_CONDITIONAL_FAN_IN,
-};
+pub(crate) use tinyflows::compat::UNSUPPORTED_NESTED_CONDITIONAL_FAN_IN;
fn to_compat_validation_error(
error: tinyflows::compat::CompatibilityError,