The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(session_host): widen turn iteration counter to usize
Steven Enamakel744c52e9e6cb
diff --git a/crates/openhuman-core/src/agent/session_host/runtime/turn_results.rs b/crates/openhuman-core/src/agent/session_host/runtime/turn_results.rsindex 024f659272..36e265dfdf 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/turn_results.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/turn_results.rs@@ -6,7 +6,7 @@ use super::super::types::OpenHumanSessionHost;impl OpenHumanSessionHost {/// Iterations from the latest durable receipt, used by the legacy/// `AgentTurnCompleted` projection after the session turn returns.- pub(crate) fn last_turn_iterations(&self) -> u32 {+ pub(crate) fn last_turn_iterations(&self) -> usize {self.runtime_state.lock().unwrap_or_else(|poisoned| poisoned.into_inner())diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex cf37acb366..302fec42dc 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -51,7 +51,7 @@ pub(super) struct OpenHumanSessionState {terminals: Vec<SessionTerminal>,pub(super) last_turn_hit_cap: bool,pub(super) last_turn_usage: Option<crate::agent::tinyagents::host::LastTurnUsage>,- pub(super) last_turn_iterations: u32,+ pub(super) last_turn_iterations: usize,pub(super) context_middleware: Option<TurnContextMiddleware>,required_output: Option<tinyagents_harness::config::RequiredOutput>,pub(crate) pending_turn_overrides: super::types::TurnOverrides,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.rsindex 37df795c55..d22e0263cb 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@@ -115,9 +115,10 @@ impl OpenHumanTurnPrelude {.map(|spec| spec.name.clone()),);}+ let agent_definition_name = surface.agent_definition_name.clone();crate::tools::toolpacks::strip_packed_from_visible(&mut surface.visible_tool_names,- &surface.agent_definition_name.clone(),+ &agent_definition_name,);// OpenHuman decides which product-discovered tools stay searchable// under its configured discovery belt. TinyAgents owns the shared@@ -132,9 +133,10 @@ impl OpenHumanTurnPrelude {.visible_tool_names.retain(|name| !deferred.contains(name));surface.deferred_tool_names = deferred;+ let permanent_tool_names = surface.permanent_tool_names.clone();surface.deferred_tool_names- .retain(|name| !surface.permanent_tool_names.contains(name));+ .retain(|name| !permanent_tool_names.contains(name));}let mut specs = surface.durable_tool_specs