Skip to content

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

fix(agent): handle missing harness assembly gracefully

Steven Enamakel2054fcccfece
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
index 526ef1ea73..27c24846aa 100644
--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
@@ -344,16 +344,6 @@ pub(super) fn assemble_turn_harness(
// follow-up once the `[tool-exposure]` divergence logs show parity. Tags encode
// the OpenHuman run context (agent id / channel / scope) for the flip; the
// name-based `inheriting` predicate does not consult them yet.
- let candidate_names: Vec<String> = tool_sets
- .iter()
- .flat_map(|set| set.iter())
- .map(|tool| tool.name().to_string())
- .collect();
- let mut seen_candidates: HashSet<String> = HashSet::new();
- let candidate_names: Vec<String> = candidate_names
- .into_iter()
- .filter(|name| seen_candidates.insert(name.clone()))
- .collect();
let exposure_tags: Vec<String> = {
let mut tags = vec![if subagent_scope.is_some() {
"scope:subagent".to_string()
diff --git a/crates/openhuman-core/src/integrations/client/errors.rs b/crates/openhuman-core/src/integrations/client/errors.rs
index e47746469b..c208847755 100644
--- a/crates/openhuman-core/src/integrations/client/errors.rs
+++ b/crates/openhuman-core/src/integrations/client/errors.rs
@@ -201,7 +201,12 @@ impl IntegrationClient {
anyhow::anyhow!("{} {} failed: {}", method.to_uppercase(), url, chain)
}
- pub(super) fn map_sdk_error(error: SdkError, method: &str, path: &str, url: &str) -> anyhow::Error {
+ pub(super) fn map_sdk_error(
+ error: SdkError,
+ method: &str,
+ path: &str,
+ url: &str,
+ ) -> anyhow::Error {
let method_upper = method.to_uppercase();
match error {
SdkError::Http(error) => Self::report_transport_error(error, method, path, url),