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(channels): update proactive delivery assertions for new event API
Steven Enamakel9966a9d6f2d3
diff --git a/crates/openhuman-core/src/channels/proactive_tests.rs b/crates/openhuman-core/src/channels/proactive_tests.rsindex 579ae6e9be..7c02b608d7 100644--- a/crates/openhuman-core/src/channels/proactive_tests.rs+++ b/crates/openhuman-core/src/channels/proactive_tests.rs@@ -111,8 +111,13 @@ async fn web_and_external_proactive_subscribers_deliver_each_destination_once()external.handle(&event).await;let delivered = web_events.recv().await.expect("web event");- assert_eq!(delivered.event, "proactive_message");- assert_eq!(delivered.full_response.as_deref(), Some("Hello!"));+ assert_eq!(delivered.event_name(), "proactive_message");+ assert!(matches!(+ delivered.wire_event(),+ crate::web_chat::WebChannelEvent::ProactiveMessage {+ full_response: Some(response), ..+ } if response == "Hello!"+ ));assert!(web_events.try_recv().is_err(),"web event must not be duplicated"