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
feat(web_chat): surface subagent progress in chat progress map
Steven Enamakel1544bedc9627
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rsindex 92c1ed22d4..a590137891 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_usage.rs@@ -1,5 +1,6 @@//! Committed-turn goal accounting and billing projection.+use crate::agent::subagent_host::SubagentUsageExt as _;/// Account only a receipt-backed turn, using the same direct-plus-completed/// child total the codec attached to the atomic transcript append.pub(in crate::agent::session_host) async fn account_committed_turn_against_goal(diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex 3df4e33b30..7349e792b6 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -13,6 +13,7 @@ use std::{};use async_trait::async_trait;+use crate::agent::subagent_host::SubagentUsageExt as _;use fs2::FileExt;use sha2::{Digest, Sha256};use tinyagents_harness::context::{RunConfig, RunContext};diff --git a/crates/openhuman-core/src/web_chat/channel_event_tests.rs b/crates/openhuman-core/src/web_chat/channel_event_tests.rsnew file mode 100644index 0000000000..e69de29bb2diff --git a/crates/openhuman-core/src/web_chat/presentation.rs b/crates/openhuman-core/src/web_chat/presentation.rsindex a945fe6b24..18c018dd04 100644--- a/crates/openhuman-core/src/web_chat/presentation.rs+++ b/crates/openhuman-core/src/web_chat/presentation.rs@@ -2,6 +2,7 @@//! then announce it to the client as one unmodified `chat_done` message.use tinychannels_bus::web as bus_web;+use crate::agent::subagent_host::SubagentUsageExt as _;use crate::agent::tinyagents::host::LastTurnUsage;use crate::web_chat::{SubagentUsagePayload, TurnUsagePayload, WebChannelEvent};diff --git a/crates/openhuman-core/src/web_chat/progress_map.rs b/crates/openhuman-core/src/web_chat/progress_map.rsindex af5bd74b41..a1bbb5d056 100644--- a/crates/openhuman-core/src/web_chat/progress_map.rs+++ b/crates/openhuman-core/src/web_chat/progress_map.rs@@ -7,6 +7,7 @@use serde::Serialize;use serde_json::Value;+use crate::agent::subagent_host::SubagentUsageExt as _;use tinychannels_bus::module_progressive::{ChannelOutputEvent, SubagentOutput, SubagentUsage, ToolFailureSummary,};diff --git a/crates/openhuman-core/src/web_chat/progress_map_tests.rs b/crates/openhuman-core/src/web_chat/progress_map_tests.rsnew file mode 100644index 0000000000..e69de29bb2diff --git a/crates/openhuman-core/src/web_chat/progress_tests.rs b/crates/openhuman-core/src/web_chat/progress_tests.rsnew file mode 100644index 0000000000..e69de29bb2diff --git a/crates/openhuman-core/src/web_chat/surface_tests.rs b/crates/openhuman-core/src/web_chat/surface_tests.rsnew file mode 100644index 0000000000..e69de29bb2diff --git a/crates/openhuman-core/src/web_chat/turn_events_tests.rs b/crates/openhuman-core/src/web_chat/turn_events_tests.rsnew file mode 100644index 0000000000..e69de29bb2