Skip to content

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

chore(flows): remove unused http credential name helper

Steven Enamakel3dd469399cf2
diff --git a/crates/openhuman-core/src/flows/ops/connections.rs b/crates/openhuman-core/src/flows/ops/connections.rs
index 49b54c9c5d..0c119e409c 100644
--- a/crates/openhuman-core/src/flows/ops/connections.rs
+++ b/crates/openhuman-core/src/flows/ops/connections.rs
@@ -184,12 +184,6 @@ pub(crate) fn build_flow_connections(
out
}
-/// Return the trimmed nonempty name from a flow picker HTTP reference.
-pub(crate) fn http_credential_name(connection_ref: &str) -> Option<&str> {
- let name = connection_ref.strip_prefix("http_cred:")?.trim();
- (!name.is_empty()).then_some(name)
-}
-
/// Human-readable picker label for a named HTTP credential, e.g.
/// `"stripe (bearer)"`. Only the (non-secret) name + scheme — never the value.
fn http_credential_display(cred: &crate::security::credentials::HttpCredentialSummary) -> String {
diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rs
index 7d202a527a..9a60579da1 100644
--- a/crates/openhuman-core/src/flows/ops_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_tests.rs
@@ -234,15 +234,8 @@ fn approval_gated_graph_with_error_port() -> Value {
})
}
-// ── Live run observation (issue G2) ───────────────────────────────────────
-
-use crate::flows::tinyflows::observability::FlowRunObserver;
-use std::sync::Arc as StdArc;
-// `RunObserver` must be in scope to call `on_step_finish` on the observer.
-use tinyflows::observability::{ExecutionStep, RunObserver as _, StepStatus};
-
-/// trigger -> output_parser passthrough: the parser is a non-trigger node, so
-/// the engine fires `on_step_finish` for it, exercising live persistence.
+/// trigger -> output_parser passthrough for the module-owned run integration
+/// tests in `ops_run_rows_and_notifications_tests.rs`.
fn passthrough_graph() -> Value {
json!({
"name": "passthrough",
diff --git a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs
index a44a9c7741..ed0eaf5c18 100644
--- a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs
@@ -400,10 +400,6 @@ fn build_flow_connections_emits_parseable_refs_for_both_kinds() {
let stripe = &out[1];
assert_eq!(stripe.kind, "http");
assert_eq!(stripe.connection_ref, "http_cred:stripe");
- assert_eq!(
- crate::flows::ops::connections::http_credential_name(&stripe.connection_ref),
- Some("stripe")
- );
assert_eq!(stripe.scheme.as_deref(), Some("bearer"));
assert_eq!(stripe.display, "stripe (bearer)");
assert!(stripe.toolkit.is_none());