The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(webhooks): correct README description for config usage
Steven Enamakel5b7b5ceec33c
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rsindex 7bf6ea119d..c5b6313495 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse/journal_export.rs@@ -252,7 +252,10 @@ pub(crate) fn journal_push_ready(config: &Config) -> bool {let url = ingestion_url(config);!skip_push(environment_for_base(&url))&& url.starts_with("http")- && direct_backend_credential(config, "langfuse journal push").is_some()+ && matches!(+ direct_backend_credential(config, "langfuse journal push"),+ Some(crate::security::credentials::session_support::BackendCredential::Session(_))+ )}pub(crate) async fn push_observations(@@ -279,10 +282,12 @@ pub(crate) async fn push_observations(// No TinyHumans connection, or no usable credential (signed out, offline// local session): a configured state, so skip quietly rather than failing// every turn's push.- let Some(credential) = direct_backend_credential(config, "langfuse journal push") else {- return Ok(());+ let token = match direct_backend_credential(config, "langfuse journal push") {+ Some(crate::security::credentials::session_support::BackendCredential::Session(token)) => {+ token+ }+ _ => return Ok(()),};- let token = credential.into_secret();// Stamp the run lineage from the run's own observations so a spawned// sub-agent's trace links back to its parent turn (#4657).let trace_ctx = trace_ctx_with_run_lineage(trace_ctx, observations);diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse/span_export.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse/span_export.rsindex 848b9b4a92..b196bc96aa 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse/span_export.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse/span_export.rs@@ -262,10 +262,12 @@ pub(crate) async fn push_spans(config: &Config, spans: &[TraceSpan]) -> Result<(// No TinyHumans connection, or no usable credential (signed out, offline// local session): a configured state, so skip quietly rather than failing// every turn's push.- let Some(credential) = direct_backend_credential(config, "langfuse span push") else {- return Ok(());+ let token = match direct_backend_credential(config, "langfuse span push") {+ Some(crate::security::credentials::session_support::BackendCredential::Session(token)) => {+ token+ }+ _ => return Ok(()),};- let token = credential.into_secret();let include_content = config.observability.agent_tracing.capture_content;let batch = spans_to_langfuse_batch(spans, include_content, environment);let span_count = spans.len();diff --git a/crates/openhuman-core/src/agent/progress_tracing/otlp.rs b/crates/openhuman-core/src/agent/progress_tracing/otlp.rsindex c2d2b7c363..1bfdb9d459 100644--- a/crates/openhuman-core/src/agent/progress_tracing/otlp.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/otlp.rs@@ -462,10 +462,12 @@ pub(super) async fn push_spans(config: &Config, spans: &[TraceSpan]) -> Result<(// No TinyHumans connection, or no usable credential (signed out, offline// local session): a configured state, so skip quietly rather than failing// every turn's push.- let Some(credential) = direct_backend_credential(config, "langfuse otlp push") else {- return Ok(());+ let token = match direct_backend_credential(config, "langfuse otlp push") {+ Some(crate::security::credentials::session_support::BackendCredential::Session(token)) => {+ token+ }+ _ => return Ok(()),};- let token = credential.into_secret();// Backend traffic: the transport's client carries the host's attribution// headers (product identity, versions).let client = crate::backend::resolve_backend_transport()diff --git a/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs b/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rsindex c6db065cba..58283704f8 100644--- a/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs+++ b/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs@@ -184,15 +184,19 @@ pub async fn export_flow_run_trace(// No TinyHumans connection, or no usable credential (signed out, offline// local session): a configured state — `direct_backend_credential` logs// the reason at debug, and the export is skipped without a request.- let Some(credential) = direct_backend_credential(config, "flows langfuse export") else {- tracing::debug!(- target: LOG_TARGET,- flow_id = %flow_id,- "[flows] langfuse export skipped: hosted backend not available"- );- return;+ let token = match direct_backend_credential(config, "flows langfuse export") {+ Some(crate::security::credentials::session_support::BackendCredential::Session(token)) => {+ token+ }+ _ => {+ tracing::debug!(+ target: LOG_TARGET,+ flow_id = %flow_id,+ "[flows] langfuse export skipped: hosted backend not available"+ );+ return;+ }};- let token = credential.into_secret();let client = match LangfuseClient::new(url.clone(), LangfuseAuth::Bearer { token }) {Ok(client) => client,Err(err) => {diff --git a/crates/openhuman-core/src/skills/webhooks/README.md b/crates/openhuman-core/src/skills/webhooks/README.mdindex 05b7ea0c61..060671acb6 100644--- a/crates/openhuman-core/src/skills/webhooks/README.md+++ b/crates/openhuman-core/src/skills/webhooks/README.md@@ -80,7 +80,7 @@ Note that nothing in the production startup path currently constructs a `Webhook- `crate::core::observability::report_error` — error reporting for body-decode / agent-trigger failures.- `crate::platform::socket::global_socket_manager` — obtain the `WebhookRouter` (stored on the socket manager) and `emit` responses over the socket.- `crate::agent::triage` — `TriggerEnvelope`, `run_triage`, `apply_decision`, `TriageOutcome` for agent-tunnel routing and `trigger_agent`.-- `crate::config::{Config, rpc::load_config_with_timeout}` — config for backend-proxy RPCs.+- `crate::config::{Config, rpc::load_config_with_timeout}` — config for local webhook routing operations.- `crate::rpc::RpcOutcome` — handler return contract.## Used by