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(tui): pass wire event directly to handle_web_event
Steven Enamakeld1960e022dba
diff --git a/crates/openhuman-tui/src/app.rs b/crates/openhuman-tui/src/app.rsindex 9153a6e315..5641653925 100644--- a/crates/openhuman-tui/src/app.rs+++ b/crates/openhuman-tui/src/app.rs@@ -172,7 +172,7 @@ pub async fn run(},recv = web_rx.recv() => match recv {Ok(ev) => {- let before=ui.viewport.total_rows();handle_web_event(&ev, &mut state, &mut ui);+ let before=ui.viewport.total_rows();handle_web_event(ev.wire_event(), &mut state, &mut ui);if ui.scroll_from_bottom>0 {ui.viewport.rows(&state,ui.transcript_area.width.saturating_sub(2),ui.transcript_area.height,ui.scroll_from_bottom);ui.scroll_from_bottom=ui.scroll_from_bottom.saturating_add(ui.viewport.total_rows().saturating_sub(before));}dirty = true;},diff --git a/crates/openhuman-tui/src/app/events.rs b/crates/openhuman-tui/src/app/events.rsindex 7fec2e1f80..6d016be6ef 100644--- a/crates/openhuman-tui/src/app/events.rs+++ b/crates/openhuman-tui/src/app/events.rs@@ -1,13 +1,14 @@//! Runtime event projection and pending decisions.use super::*;use crate::event_view::WebEventView;+use openhuman_rpc::embed::chat_surface::WebChannelEvent;pub(super) fn handle_web_event(- scoped: &ScopedWebEvent,+ event: &WebChannelEvent,state: &mut TranscriptState,ui: &mut UiState,) {- let ev = WebEventView::from_event(scoped.wire_event());+ let ev = WebEventView::from_event(event);if ui.thread_id.is_empty() || ev.client_id != state.client_id() || ev.thread_id != ui.thread_id{return;