Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(web_chat): nest subagent progress module under progress

Steven Enamakel5d48d03e3a85
diff --git a/crates/openhuman-core/src/web_chat/progress.rs b/crates/openhuman-core/src/web_chat/progress.rs
index c6bc46c3e3..2f7bd8fa5a 100644
--- a/crates/openhuman-core/src/web_chat/progress.rs
+++ b/crates/openhuman-core/src/web_chat/progress.rs
@@ -29,6 +29,8 @@ use crate::core::runtime::DispatchCtx;
use crate::threads::turn_state::mirror::ObserveProgress;
use tinyagents_harness::progress::AgentProgress;
+#[path = "progress_subagent.rs"]
+mod subagent;
#[path = "progress_trace.rs"]
mod trace;
diff --git a/crates/openhuman-core/src/web_chat/progress_subagent.rs b/crates/openhuman-core/src/web_chat/progress_subagent.rs
index 55a0b29e92..8bdfd905a6 100644
--- a/crates/openhuman-core/src/web_chat/progress_subagent.rs
+++ b/crates/openhuman-core/src/web_chat/progress_subagent.rs
@@ -3,11 +3,12 @@
use serde_json::json;
-use super::progress::ProgressProjection;
-use super::progress_ledger::ChildDone;
-use super::progress_map as map;
use tinyagents_harness::progress::AgentProgress;
+use super::super::progress_ledger::ChildDone;
+use super::super::progress_map as map;
+use super::ProgressProjection;
+
impl ProgressProjection {
pub(super) async fn on_subagent_event(&mut self, event: AgentProgress) {
let round = self.round;
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 4f8a123ac8..2b091474bb 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -35,7 +35,6 @@ const LEGACY_LIMIT_ENTRIES = [
["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 965],
["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1235],
["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1045],
- ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1171],
// These established external test modules grew with upstream coverage. Pin
// their current sizes while follow-up work separates their test concerns.
// `core/` was pruned from the line limit by name until these pins; its