Skip to content

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

style: format upstream progress bridge changes

Steven Enamakel9949bbe1bf37
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index c2afe8c5ad..e26efe9df0 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -10,8 +10,8 @@ use crate::web_chat::{SubagentProgressDetail, WebChannelEvent};
use tinyagents_session::{port::TurnStates, turn_state::TurnStateMirror};
use super::event_bus::publish_web_channel_event_in;
-use crate::core::runtime::DispatchCtx;
use super::types::ChatRequestMetadata;
+use crate::core::runtime::DispatchCtx;
#[path = "progress_bridge_subagent_events.rs"]
mod subagent_events;
@@ -685,7 +685,8 @@ pub(crate) fn spawn_progress_bridge(
parent_call_id,
..
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_spawned(
&ctx,
&mut emit_seq,
@@ -714,7 +715,8 @@ pub(crate) fn spawn_progress_bridge(
dirty_status,
..
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_completed(
&ctx,
&mut emit_seq,
@@ -738,7 +740,8 @@ pub(crate) fn spawn_progress_bridge(
task_id,
error,
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_failed(
&ctx,
&mut emit_seq,
@@ -757,7 +760,8 @@ pub(crate) fn spawn_progress_bridge(
worker_thread_id,
checkpoint_path,
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_awaiting_user(
&ctx,
&mut emit_seq,
@@ -777,7 +781,8 @@ pub(crate) fn spawn_progress_bridge(
max_iterations,
extended_policy,
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_iteration_started(
&ctx,
&mut emit_seq,
@@ -799,7 +804,8 @@ pub(crate) fn spawn_progress_bridge(
display_label,
display_detail,
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_tool_call_started(
&ctx,
&mut emit_seq,
@@ -831,7 +837,8 @@ pub(crate) fn spawn_progress_bridge(
display_detail,
structured,
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_tool_call_completed(
&ctx,
&mut emit_seq,
@@ -858,7 +865,8 @@ pub(crate) fn spawn_progress_bridge(
delta,
iteration,
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_text_delta(
&ctx,
&mut emit_seq,
@@ -875,7 +883,8 @@ pub(crate) fn spawn_progress_bridge(
delta,
iteration,
} => {
- let ctx = BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
+ let ctx =
+ BridgeCtx::new(&client_id, &thread_id, &request_id, &config, &dispatch_ctx);
subagent_events::on_subagent_thinking_delta(
&ctx,
&mut emit_seq,