Skip to content

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

style(agent): remove redundant parentheses in subagent fold

Steven Enamakel1b416017346c
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index 48cac8304e..39430c93aa 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -807,7 +807,7 @@ pub(super) fn holistic_last_turn_usage(
) -> crate::agent::tinyagents::host::LastTurnUsage {
// Each count is the turn's own plus every synchronous child's.
let tokens = |own: u64, child: fn(&crate::agent::subagent_host::SubagentUsage) -> u64| {
- (sidecar.subagents.iter()).fold(own, |total, entry| {
+ sidecar.subagents.iter().fold(own, |total, entry| {
total.saturating_add(child(&entry.usage))
})
};