Skip to content

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

fix(subagent_host): initialize new error fields in outcome constructors

Steven Enamakel55b66e838634
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index 8caaa1c483..839ab89228 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -899,6 +899,8 @@ impl OpenHumanPersistence {
..ArtifactReference::default()
})
.collect(),
+ schema_error: None,
+ artifact_error: None,
}
}
@@ -1213,6 +1215,8 @@ fn host_outcome_to_neutral(
..ArtifactReference::default()
})
.collect(),
+ schema_error: None,
+ artifact_error: None,
}
}
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
index 8864b490bb..84a875829e 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs
@@ -28,6 +28,8 @@ fn paused_outcome(question: &str, resume: SubagentResume) -> SubagentOutcome {
}),
usage: Default::default(),
artifacts: Vec::new(),
+ schema_error: None,
+ artifact_error: None,
}
}