Skip to content

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

test(triage): add origin context to escalation tests

Steven Enamakel504f622488a7
diff --git a/crates/openhuman-core/src/triage/escalation_tests.rs b/crates/openhuman-core/src/triage/escalation_tests.rs
index edb7954e0d..e94c710c6e 100644
--- a/crates/openhuman-core/src/triage/escalation_tests.rs
+++ b/crates/openhuman-core/src/triage/escalation_tests.rs
@@ -112,14 +112,17 @@ async fn react_dispatch_keeps_routing_without_creating_child_lifecycle_records()
runtime
.run_in(
Arc::clone(runtime.context()),
- apply_decision(
- &ctx,
- run_with_target(
- TriageAction::React,
- "trigger_reactor",
- "handle this trigger inline",
+ crate::security::turn_origin::with_origin(
+ crate::triage::local_trigger_origin(),
+ apply_decision(
+ &ctx,
+ run_with_target(
+ TriageAction::React,
+ "trigger_reactor",
+ "handle this trigger inline",
+ ),
+ &envelope,
),
- &envelope,
),
)
.await