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
feat(composio): add trigger history tracking
Steven Enamakel5d53647277d3
diff --git a/crates/openhuman-core/src/integrations/composio/trigger_history.rs b/crates/openhuman-core/src/integrations/composio/trigger_history.rsindex 5c8c644923..94abc0f460 100644--- a/crates/openhuman-core/src/integrations/composio/trigger_history.rs+++ b/crates/openhuman-core/src/integrations/composio/trigger_history.rs@@ -41,6 +41,7 @@ impl TriggerHistory {}async fn ensure_lease(+ ctx: &DispatchCtx,config: &Config,lease: &mut Option<Lease>,client: ModuleClient,@@ -60,7 +61,7 @@ impl TriggerHistory {.ok_or_else(|| "trigger archive requires a UTF-8 state directory".to_owned())?;// The archive opens on the module's storage: bring yesterday's JSONL// files across first (once per state directory, best effort).- crate::modules::import_legacy_connectors(&config.workspace_dir.join("state")).await;+ crate::modules::import_legacy_connectors(ctx, &config.workspace_dir.join("state")).await;let handle = client.call("tinyconnectors",@@ -87,11 +88,12 @@ impl TriggerHistory {let lease = Arc::clone(&self.lease);let config = config.clone();let client = self.client(&config);+ let task_ctx = ctx.clone();// Keep ownership installation running if the caller is cancelled while// OpenArchive completes. A later close can still release the handle.ctx.spawn(async move {let mut guard = lease.lock_owned().await;- Self::ensure_lease(&config, &mut guard, client).await?;+ Self::ensure_lease(&task_ctx, &config, &mut guard, client).await?;Ok(guard)}).await