Skip to content

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

refactor(flows): simplify wiring warning handling

Steven Enamakel23599e366ab4
diff --git a/crates/openhuman-core/src/flows/builder_host.rs b/crates/openhuman-core/src/flows/builder_host.rs
index 28300094ae..2eaf8508ad 100644
--- a/crates/openhuman-core/src/flows/builder_host.rs
+++ b/crates/openhuman-core/src/flows/builder_host.rs
@@ -190,7 +190,7 @@ impl FlowsHost {
wire!(ops::engine_compatibility_errors_json(&context, &config, payload).await?)
}
PortOperation::GatesWiringWarnings => {
- wire!(ops::wiring_warnings_json(&context, &config, payload).await?)
+ wire!(ops::wiring_warnings_json(&config, payload).await?)
}
PortOperation::GatesApprovalManifest => {
wire!(ops::approval_manifest_json(&context, &config, payload).await?)
diff --git a/crates/openhuman-core/src/flows/ops/builder_gates.rs b/crates/openhuman-core/src/flows/ops/builder_gates.rs
index 5d7a0ee6bf..06fd3a9e6f 100644
--- a/crates/openhuman-core/src/flows/ops/builder_gates.rs
+++ b/crates/openhuman-core/src/flows/ops/builder_gates.rs
@@ -194,10 +194,7 @@ pub(crate) async fn build_builder_proposal(
let summary = tinyflows::summary::summarize(graph);
let mut warnings = graph_trigger_warnings(graph);
- match graph_wiring_warnings(ctx, config, graph).await {
- Ok(found) => warnings.extend(found),
- Err(error) => tracing::debug!(target: "flows", %error, "[flows] wiring warnings unavailable"),
- }
+ warnings.extend(graph_wiring_warnings(config, graph).await);
// 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.