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 QueueItemRemoved event in channel ops
Steven Enamakele01f7c9c367d
diff --git a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs b/crates/openhuman-core/src/web_chat/ops/channel_ops.rsindex b013877a8d..bb4e51771b 100644--- a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs+++ b/crates/openhuman-core/src/web_chat/ops/channel_ops.rs@@ -8,6 +8,7 @@ use serde_json::{json, Value};use crate::core::runtime::DispatchCtx;use crate::core::Outcome;use crate::web_chat::WebChannelEvent;+use crate::web_chat::channel_event::event_context;use super::super::event_bus::publish_web_channel_event_in;use super::super::runner::{runtime, scope_of, CancelNote};@@ -341,16 +342,13 @@ pub async fn channel_web_queue_remove(log::info!("[web-channel] removed queued item thread_id={thread_id} item_id={item_id}");publish_web_channel_event_in(ctx,- WebChannelEvent {- event: "queue_item_removed".to_string(),- client_id: client_id.to_string(),- thread_id: thread_id.to_string(),+ WebChannelEvent::QueueItemRemoved {+ context: event_context(client_id, thread_id, ""),queue_item: Some(crate::web_chat::QueueItemPayload {id: item_id.to_string(),lane: None,text_preview: None,}),- ..Default::default()},);}