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
test(plan_review): cover agent-scoped review replay from profile UI
Steven Enamakelba765cce4c2b
diff --git a/crates/openhuman-core/src/plan_review/gate_tests.rs b/crates/openhuman-core/src/plan_review/gate_tests.rsindex a207e69ddd..84d72c3d7f 100644--- a/crates/openhuman-core/src/plan_review/gate_tests.rs+++ b/crates/openhuman-core/src/plan_review/gate_tests.rs@@ -154,6 +154,10 @@ async fn parked_review_for_thread_is_none_when_nothing_is_parked() {async fn parked_reviews_are_isolated_by_tenant() {let gate = std::sync::Arc::new(PlanReviewGate::new(Duration::from_secs(5)));let alice = crate::core::runtime::Tenant {+ profile: Some("review-alice".into()),+ agent: Some("trigger_reactor".into()),+ };+ let alice_ui = crate::core::runtime::Tenant {profile: Some("review-alice".into()),agent: None,};@@ -173,8 +177,8 @@ async fn parked_reviews_are_isolated_by_tenant() {assert!(futures::poll!(parked.as_mut()).is_pending());let alice_review = gate- .parked_review_for_thread(&alice, "same-thread")- .expect("Alice's review is available in Alice's scope");+ .parked_review_for_thread(&alice_ui, "same-thread")+ .expect("Alice's profile UI can replay its agent's review");assert!(gate.parked_review_for_thread(&bob, "same-thread").is_none());assert!(!gate.decide(&bob,@@ -182,7 +186,7 @@ async fn parked_reviews_are_isolated_by_tenant() {PlanReviewResolution::Approve));assert!(gate.decide(- &alice,+ &alice_ui,&alice_review.request_id,PlanReviewResolution::Approve));