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
fix(runtime): correct turn checkpoint handling for session host
Steven Enamakeld52b9eedfd6b
diff --git a/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs b/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rsindex c1d09f0fed..67fc5361da 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs@@ -5,8 +5,6 @@ use super::super::types::OpenHumanSessionHost;use crate::agent::error::AgentError;use crate::agent::messages::ConversationMessage;use crate::util::truncate_with_ellipsis;-use tinytools_agent::dialect::NativeToolCall;-use tinytools_agent::ParsedToolCall;impl OpenHumanSessionHost {const EVENT_ERROR_MAX_CHARS: usize = 256;diff --git a/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rs b/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rsindex df8cdd612a..9b0d18412e 100644--- a/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rs+++ b/crates/openhuman-core/src/agent/session_host/turn_checkpoint.rs@@ -1,5 +1,3 @@-use crate::agent::messages::ChatMessage;-/// Instruction appended (as a synthetic user turn) to the provider/// messages when a turn hits the tool-call iteration cap. Asks the model/// to wrap up with a resumable checkpoint instead of letting the turn die.diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/mod.rs b/crates/openhuman-core/src/flows/tinyflows/caps/mod.rsindex fbc8a71c84..49a8b236f3 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/mod.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/mod.rs@@ -32,6 +32,6 @@ pub(crate) use tinyflows::caps::mock_schema_aware::*;pub(crate) use tinyflows::nodes::integration::agent_prompt::{build_agent_result, build_harness_run_prompt, clamp_run_timeout_secs, extract_structured_json,prepend_system_message, resolve_node_model, resolve_run_timeout_secs,- scale_timeout_for_iteration_cap, structured_output_requested,+ structured_output_requested,};pub(crate) use tools::NATIVE_TOOL_PREFIX;diff --git a/crates/openhuman-core/src/hooks/ops.rs b/crates/openhuman-core/src/hooks/ops.rsindex 164bb45226..5b82c45831 100644--- a/crates/openhuman-core/src/hooks/ops.rs+++ b/crates/openhuman-core/src/hooks/ops.rs@@ -14,8 +14,7 @@ use tinyagents_runtime::command_hooks::context::{build_input, set_host_context, HostContext, TurnIdentity,};use tinyagents_runtime::command_hooks::types::{- CompactPayload, HookEvent, HookPayload, PromptPayload, SessionPayload, SubagentPayload,- TextPayload,+ HookEvent, HookPayload, PromptPayload, SubagentPayload,};/// Bring the hook system up: resolve host facts, read every `hooks.json`, anddiff --git a/crates/openhuman-core/src/mcp/registry/mod.rs b/crates/openhuman-core/src/mcp/registry/mod.rsindex 971ac8adfb..d6b164db77 100644--- a/crates/openhuman-core/src/mcp/registry/mod.rs+++ b/crates/openhuman-core/src/mcp/registry/mod.rs@@ -345,20 +345,6 @@ pub mod connections {}}-/// The registry's own store, for the callers that reach it directly.-///-/// The store itself moved to `tinymcp`. What is left here is the one entry-/// point outside this module that named it: an end-to-end test seeds the-/// upstream response cache so it can exercise an install without reaching a-/// real catalog. Keeping the spelling means that test needs no edit, and the-/// signature is the one it already calls.-#[cfg(feature = "mcp")]-pub mod store {- use crate::config::Config;- use crate::mcp::host;--}-/// Bringing installed servers up at startup.#[cfg(feature = "mcp")]pub mod boot {diff --git a/crates/openhuman-core/src/runtime/client/mod.rs b/crates/openhuman-core/src/runtime/client/mod.rsindex 503e77fa56..31df5d77a9 100644--- a/crates/openhuman-core/src/runtime/client/mod.rs+++ b/crates/openhuman-core/src/runtime/client/mod.rs@@ -19,6 +19,6 @@ mod disabled;// `Languages` listing, for one — but a facade that re-exported the whole surface// would oblige the stub to grow a twin of every member nothing here uses.#[cfg(feature = "modules")]-pub(crate) use crate::modules::runtime::{execute, pool_stats, resolve, RuntimeCallError};+pub(crate) use crate::modules::runtime::{execute, resolve, RuntimeCallError};#[cfg(not(feature = "modules"))]pub(crate) use disabled::{execute, pool_stats, resolve, RuntimeCallError};diff --git a/crates/openhuman-core/src/search/bus.rs b/crates/openhuman-core/src/search/bus.rsindex b8eb206a45..987bbae5e2 100644--- a/crates/openhuman-core/src/search/bus.rs+++ b/crates/openhuman-core/src/search/bus.rs@@ -5,8 +5,6 @@//! Without this subscriber a login would only reach it on the next search//! call, and a logout would leave the old credential in the module until then.-use std::sync::Arc;-use async_trait::async_trait;use tinybus::EventHandler;diff --git a/crates/openhuman-core/src/security/devices/rpc.rs b/crates/openhuman-core/src/security/devices/rpc.rsindex 25278274da..758b0a617b 100644--- a/crates/openhuman-core/src/security/devices/rpc.rs+++ b/crates/openhuman-core/src/security/devices/rpc.rs@@ -16,7 +16,7 @@ use std::sync::{Arc, Mutex};use crate::config::Config;use crate::core::Outcome;use crate::security::devices::crypto::{- base64url_decode, base64url_encode, DeviceKeypair, TunnelCipher,+ base64url_encode, DeviceKeypair, TunnelCipher,};use crate::security::devices::store;use crate::security::devices::tunnel_client;