Skip to content

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

chore: reformat test call arguments and update layout limit

Steven Enamakela52a20f2a16b
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
index 531b57c308..e5c1d707f5 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
@@ -114,8 +114,7 @@ async fn tool_call_completed_forwards_real_output_on_tool_result() {
"req-out".into(),
store,
ChatRequestMetadata::default(),
- config,
- crate::core::runtime::DispatchCtx::ambient(),
+ config, crate::core::runtime::DispatchCtx::ambient(),
);
tx.send(crate::agent::progress::AgentProgress::ToolCallCompleted {
@@ -227,8 +226,7 @@ fn spawn_test_bridge(
request_id.to_string(),
store,
ChatRequestMetadata::default(),
- Config::default(),
- crate::core::runtime::DispatchCtx::ambient(),
+ Config::default(), crate::core::runtime::DispatchCtx::ambient(),
);
tx
}
@@ -423,8 +421,7 @@ async fn wait_drained_returns_after_queued_events_are_forwarded() {
"req-drain".into(),
store,
ChatRequestMetadata::default(),
- drain_test_config(&tmp),
- crate::core::runtime::DispatchCtx::ambient(),
+ drain_test_config(&tmp), crate::core::runtime::DispatchCtx::ambient(),
);
tx.send(AgentProgress::ToolCallCompleted {
@@ -481,8 +478,7 @@ async fn wait_drained_is_bounded_when_the_turn_never_completes() {
"req-drain-timeout".into(),
store,
ChatRequestMetadata::default(),
- drain_test_config(&tmp),
- crate::core::runtime::DispatchCtx::ambient(),
+ drain_test_config(&tmp), crate::core::runtime::DispatchCtx::ambient(),
);
assert!(!handle.wait_drained(Duration::from_millis(50)).await);
// Closing the channel ends the bridge, which counts as drained.
@@ -507,8 +503,7 @@ async fn short_narration_is_flushed_on_the_rounds_first_tool_call() {
"req-short".into(),
store,
ChatRequestMetadata::default(),
- drain_test_config(&tmp),
- crate::core::runtime::DispatchCtx::ambient(),
+ drain_test_config(&tmp), crate::core::runtime::DispatchCtx::ambient(),
);
tx.send(AgentProgress::TextDelta {
delta: "Let me check.".into(),
@@ -704,8 +699,7 @@ async fn hold_text_stream_suppresses_text_delta_but_keeps_interim() {
hold_text_stream: true,
..Default::default()
},
- config,
- crate::core::runtime::DispatchCtx::ambient(),
+ config, crate::core::runtime::DispatchCtx::ambient(),
);
tx.send(AgentProgress::TextDelta {
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 0a15ee7695..65282ab984 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -35,7 +35,7 @@ const LEGACY_LIMIT_ENTRIES = [
["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 974],
["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1241],
["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1045],
- ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1209],
+ ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1206],
// 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