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/ops/builder_gates.rs,crates/openhuman-core/src/

Steven Enamakelbddd6268d76c
diff --git a/crates/openhuman-core/src/flows/ops/builder_gates.rs b/crates/openhuman-core/src/flows/ops/builder_gates.rs
index 04af983d97..b73368d4e3 100644
--- a/crates/openhuman-core/src/flows/ops/builder_gates.rs
+++ b/crates/openhuman-core/src/flows/ops/builder_gates.rs
@@ -146,7 +146,10 @@ pub(crate) async fn build_builder_proposal(
let summary = tinyflows::summary::summarize(graph);
let mut warnings = graph_trigger_warnings(graph);
- warnings.extend(graph_wiring_warnings(ctx, config, graph).await);
+ match graph_wiring_warnings(ctx, config, graph).await {
+ Ok(wiring_warnings) => warnings.extend(wiring_warnings),
+ Err(error) => tracing::warn!(target: "flows", %error, "[flows] TinyFlows wiring warnings failed"),
+ }
// Connector onboarding (Phase 5, item 18): tell the proposal card which
// toolkits this graph needs and whether they're connected, so it can render
// "Connect <toolkit>" CTAs instead of a bare gate error later.
diff --git a/crates/openhuman-core/src/flows/ops/wiring_warnings.rs b/crates/openhuman-core/src/flows/ops/wiring_warnings.rs
index b7295f884b..9f45d3afd0 100644
--- a/crates/openhuman-core/src/flows/ops/wiring_warnings.rs
+++ b/crates/openhuman-core/src/flows/ops/wiring_warnings.rs
@@ -7,17 +7,12 @@ pub(crate) async fn graph_wiring_warnings(
context: &DispatchCtx,
config: &Config,
graph: &WorkflowGraph,
-) -> Vec<String> {
+) -> Result<Vec<String>, String> {
let graph = match serde_json::to_value(graph) {
Ok(graph) => graph,
- Err(error) => return vec![format!("wiring warnings could not serialize graph: {error}")],
+ Err(error) => return Err(format!("wiring warnings could not serialize graph: {error}")),
};
- wiring_warnings(context, config, graph)
- .await
- .unwrap_or_else(|error| {
- tracing::warn!(target: "flows", %error, "[flows] TinyFlows wiring warnings failed");
- Vec::new()
- })
+ wiring_warnings(context, config, graph).await
}
/// Author-time WARNs for a portable Copilot graph payload.