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(triage): escalate stalled tasks to proactive channel
Steven Enamakel8cbbc6f99c5f
diff --git a/crates/openhuman-core/src/agent/triage/escalation.rs b/crates/openhuman-core/src/agent/triage/escalation.rsindex bdc6d9bee2..05bbad5935 100644--- a/crates/openhuman-core/src/agent/triage/escalation.rs+++ b/crates/openhuman-core/src/agent/triage/escalation.rs@@ -131,8 +131,11 @@ pub async fn apply_decision(run: TriageRun, envelope: &TriggerEnvelope) -> anyho"prompt_chars": prompt.chars().count(),});let tool_key = format!("triage.{}", run.decision.action.as_str());- let (outcome, request_id) =- gate.intercept_audited(&tool_key, &summary, redacted).await;+ // A triage escalation is not a chat turn: nothing to route an+ // approval reply to.+ let (outcome, request_id) = gate+ .intercept_audited(&Default::default(), &tool_key, &summary, redacted)+ .await;match outcome {crate::security::approval::GateOutcome::Allow => {approval_request_id = request_id;diff --git a/crates/openhuman-core/src/channels/proactive.rs b/crates/openhuman-core/src/channels/proactive.rsindex 9e3f60d262..9bf00e5e1e 100644--- a/crates/openhuman-core/src/channels/proactive.rs+++ b/crates/openhuman-core/src/channels/proactive.rs@@ -308,7 +308,12 @@ impl EventHandler<DomainEvent> for ProactiveMessageSubscriber {job_id: source.clone(),source: automation_source,},- gate.intercept_audited("channels.proactive_send", &summary, redacted),+ gate.intercept_audited(+ &Default::default(),+ "channels.proactive_send",+ &summary,+ redacted,+ ),).await;match outcome {