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
refactor(web_chat): use typed event for external transfer pending
Steven Enamakel528e4466ff93
diff --git a/crates/openhuman-core/src/web_chat/egress_surface.rs b/crates/openhuman-core/src/web_chat/egress_surface.rsindex 16a728f232..fc9b40d169 100644--- a/crates/openhuman-core/src/web_chat/egress_surface.rs+++ b/crates/openhuman-core/src/web_chat/egress_surface.rs@@ -11,6 +11,7 @@ use tinybus::{EventHandler, SubscriptionHandle};use crate::core::events::DomainEvent;use crate::web_chat::WebChannelEvent;+use crate::web_chat::channel_event::event_context;use super::event_bus::publish_web_channel_event;@@ -94,13 +95,13 @@ impl EventHandler<DomainEvent> for EgressSurfaceSubscriber {descriptor.reason,request_id,);- publish_web_channel_event(WebChannelEvent {- event: "external_transfer_pending".to_string(),- client_id: client_id.clone(),- thread_id: thread_id.clone(),- request_id: request_id.clone().unwrap_or_default(),+ publish_web_channel_event(WebChannelEvent::ExternalTransferPending {+ context: event_context(+ client_id,+ thread_id,+ request_id.as_deref().unwrap_or_default(),+ ),args: Some(args),- ..Default::default()});}}