Skip to content

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

style(session_host): apply rustfmt formatting to session host files

Steven Enamakel81a24f19507a
diff --git a/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs b/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs
index 7583f0fcbe..973420222c 100644
--- a/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs
@@ -99,7 +99,11 @@ fn durable_turn_usage_keeps_the_root_record_exclusive_with_child_entries() {
.session_sidecar
.lock()
.unwrap_or_else(std::sync::PoisonError::into_inner);
- assert_eq!(sidecar.subagents.len(), 1, "children remain available to UI billing");
+ assert_eq!(
+ sidecar.subagents.len(),
+ 1,
+ "children remain available to UI billing"
+ );
}
#[test]
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
index 651b711331..d0722946da 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
@@ -392,15 +392,17 @@ async fn committed_goal_accounting_saturates_direct_plus_inclusive_child_tokens(
output_tokens: u64::MAX - 2,
..Default::default()
};
- sidecar.subagents.push(crate::agent::tinyagents::host::SubagentUsageEntry {
- task_id: "large-child".into(),
- agent_id: "researcher".into(),
- usage: crate::agent::subagent_host::SubagentUsage {
- input_tokens: 10,
- output_tokens: 10,
- ..Default::default()
- },
- });
+ sidecar
+ .subagents
+ .push(crate::agent::tinyagents::host::SubagentUsageEntry {
+ task_id: "large-child".into(),
+ agent_id: "researcher".into(),
+ usage: crate::agent::subagent_host::SubagentUsage {
+ input_tokens: 10,
+ output_tokens: 10,
+ ..Default::default()
+ },
+ });
account_committed_turn_against_goal(workspace.path(), Some("saturated-goal"), &sidecar).await;
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_tool_surface.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_tool_surface.rs
index d11ea6e227..820602f3b3 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_tool_surface.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_tool_surface.rs
@@ -156,10 +156,7 @@ impl OpenHumanTurnPrelude {
auto_include_new_synthesized_tools,
discovery_deferred,
|visible| {
- crate::tools::toolpacks::strip_packed_from_visible(
- visible,
- &agent_definition_name,
- )
+ crate::tools::toolpacks::strip_packed_from_visible(visible, &agent_definition_name)
},
);
let mut specs = surface
diff --git a/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rs b/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rs
index ef4c9aa9b6..dfc19d7a5d 100644
--- a/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rs
+++ b/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rs
@@ -248,8 +248,6 @@ pub(crate) fn render_tool_results(results: &[CheckpointToolResult], total_budget
)
}
-
-
/// Budget for the tool records a closing message is grounded in and checked
/// against (issues #6278, #6279).
///
@@ -504,7 +502,7 @@ pub(crate) fn close_verification_prompt(user_request: &str, records: &str, reply
}
/// The check call's verdict on a closing message.
-pub(crate) use tinyagents_harness::close::{CloseVerdict, parse_close_verdict};
+pub(crate) use tinyagents_harness::close::{parse_close_verdict, CloseVerdict};
/// Build a deterministic final answer from this turn's tool results.
/// Used as the guaranteed non-empty fallback when a turn ran tools but the