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/integrations/composio/bus/trigger_subscriber.rs,crate

Steven Enamakel659abc9c08db
diff --git a/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs b/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs
index 68d687eb5f..a1444575f7 100644
--- a/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs
+++ b/crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs
@@ -184,7 +184,7 @@ impl EventHandler<DomainEvent> for ComposioTriggerSubscriber {
// Spawn so the bus dispatch loop stays non-blocking — the
// triage turn is an LLM round-trip that may take seconds.
tokio::spawn(async move {
- match run_triage(&envelope).await {
+ match run_triage(&crate::core::runtime::DispatchCtx::ambient(), &envelope).await {
Ok(TriageOutcome::Decision(run)) => {
// Remote payload: a Composio trigger body is
// attacker-influenceable, so the dispatch parks rather than
@@ -192,7 +192,7 @@ impl EventHandler<DomainEvent> for ComposioTriggerSubscriber {
// spawned task, because `AGENT_TURN_ORIGIN` is a task-local
// and does not cross `tokio::spawn`.
let origin = remote_trigger_origin(&envelope);
- if let Err(e) = with_origin(origin, apply_decision(run, &envelope)).await {
+ if let Err(e) = with_origin(origin, apply_decision(&crate::core::runtime::DispatchCtx::ambient(), run, &envelope)).await {
tracing::error!(
label = %envelope.display_label,
error = %e,
diff --git a/crates/openhuman-core/src/skills/webhooks/bus.rs b/crates/openhuman-core/src/skills/webhooks/bus.rs
index bb90c16222..fb80b5fde1 100644
--- a/crates/openhuman-core/src/skills/webhooks/bus.rs
+++ b/crates/openhuman-core/src/skills/webhooks/bus.rs
@@ -304,7 +304,7 @@ fn decode_webhook_body(base64_body: &str) -> Result<serde_json::Value, String> {
async fn run_agent_trigger(
envelope: &crate::agent::triage::TriggerEnvelope,
) -> Result<String, String> {
- let outcome = crate::agent::triage::run_triage(envelope)
+ let outcome = crate::agent::triage::run_triage(&crate::core::runtime::DispatchCtx::ambient(), envelope)
.await
.map_err(|e| format!("triage evaluation failed: {e}"))?;
@@ -316,7 +316,11 @@ async fn run_agent_trigger(
let origin = crate::agent::triage::remote_trigger_origin(envelope);
crate::agent::turn_origin::with_origin(
origin,
- crate::agent::triage::apply_decision(run.clone(), envelope),
+ crate::agent::triage::apply_decision(
+ &crate::core::runtime::DispatchCtx::ambient(),
+ run.clone(),
+ envelope,
+ ),
)
.await
.map_err(|e| format!("apply_decision failed: {e}"))?;