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: preserve hosted tool access after tinyagents update
Steven Enamakel421a8cf89885
diff --git a/crates/openhuman-core/src/agent/message_convert_tests.rs b/crates/openhuman-core/src/agent/message_convert_tests.rsindex 998b5b383f..c0248aebe4 100644--- a/crates/openhuman-core/src/agent/message_convert_tests.rs+++ b/crates/openhuman-core/src/agent/message_convert_tests.rs@@ -46,11 +46,11 @@ fn native_image_round_trip_preserves_adjacent_text_for_claude_code() {);let line: serde_json::Value = serde_json::from_slice(&stdin).unwrap();let content = line["message"]["content"].as_array().unwrap();- // The Claude Code bridge separates typed source blocks with newlines;- // retain the text/image/text order rather than collapsing those boundaries.- assert_eq!(content[0]["text"], "before \n");+ // The current Claude Code bridge preserves adjacent typed blocks without+ // injecting separators.+ assert_eq!(content[0]["text"], "before ");assert_eq!(content[1]["type"], "image");- assert_eq!(content[2]["text"], "\n after");+ assert_eq!(content[2]["text"], " after");}#[test]@@ -70,10 +70,11 @@ fn native_image_round_trip_preserves_literal_private_marker_text() {);let line: serde_json::Value = serde_json::from_slice(&stdin).unwrap();let content = line["message"]["content"].as_array().unwrap();- assert_eq!(content[0]["text"], "literal ");- assert_eq!(content[1]["text"], "[OH_IMAGE:data:image/png;base64,QUJD]");- assert_eq!(content[2]["text"], "\n");- assert_eq!(content[3]["type"], "image");+ assert_eq!(+ content[0]["text"],+ "literal [OH_IMAGE:data:image/png;base64,QUJD]"+ );+ assert_eq!(content[1]["type"], "image");}// An image-only turn must not emit an empty text block (some providers 400diff --git a/crates/openhuman-core/src/agent/tinyagents/host/bundle.rs b/crates/openhuman-core/src/agent/tinyagents/host/bundle.rsindex 78e185297b..04d5159569 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/bundle.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/bundle.rs@@ -123,9 +123,18 @@ impl OpenHumanHostBundleFactory {turn: &OpenHumanRunContext,) -> OpenHumanHostBundle {let context = Arc::new(OpenHumanContextComposer::new(Arc::clone(&inputs.config)));+ let registered_tools = Arc::new(+ inputs+ .tool_sets+ .iter()+ .flat_map(|set| set.iter())+ .map(|tool| tool.name().to_string())+ .collect(),+ );let definitions = Arc::new(OpenHumanDefinitionRegistry::new(inputs.definitions)- .with_config(Arc::clone(&inputs.config)),+ .with_config(Arc::clone(&inputs.config))+ .with_registered_tools(registered_tools),);let mut security = OpenHumanSecurityGate::new(inputs.security_policy, inputs.tool_sets);if let Some(policy) = inputs.tool_policy {diff --git a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rsindex 960408e12d..e854036dce 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs@@ -288,10 +288,10 @@ impl OpenHumanDefinitionRegistry {// denied, must project as no tools rather than as everything.ResolvedScope::Named(names)}- ToolScope::Wildcard if def.disallowed_tools.is_empty() => ResolvedScope::Wildcard,ToolScope::Wildcard => match self.registered_tools.as_deref() {- // "Everything except these" is only expressible against a- // concrete list, so materialize and filter.+ // The hosted API treats an empty list as deny-all, so materialize+ // every wildcard scope rather than serializing it as an empty+ // vector. Apply the denylist while doing so.Some(registered) => {let mut names: Vec<String> = registered.iter()@@ -301,19 +301,14 @@ impl OpenHumanDefinitionRegistry {dedupe_preserving_order(&mut names);ResolvedScope::Named(names)}- // Fail closed. Emitting the wildcard here would silently- // re-grant every denied tool — for shipped definitions that- // means specialist-only routes becoming- // generally available. An agent with no tools is a visible,- // debuggable failure; a silently widened one is not.+ // Fail closed when the concrete session tool surface is absent.None => {log::error!(- "[tinyagents][definitions] agent '{}' has a wildcard tool scope with a \- non-empty denylist ({} entries) but no registered tool list was \+ "[tinyagents][definitions] agent '{}' has a wildcard tool scope but no \+ registered tool list was \attached — failing closed to no tools. Call \`with_registered_tools(..)` to project this definition.",- def.id,- def.disallowed_tools.len()+ def.id);ResolvedScope::Named(Vec::new())}diff --git a/vendor/tinyflows b/vendor/tinyflowsindex 73c19c75f0..a94e5a29dc 160000--- a/vendor/tinyflows+++ b/vendor/tinyflows@@ -1 +1 @@-Subproject commit 73c19c75f0aa292d939107200885720f6c42c663+Subproject commit a94e5a29dce3a6fd69983a5ffc3610adba722017