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 embed config gracefully

Steven Enamakel4a0f8a5bcb0c
diff --git a/crates/openhuman-embed/src/agent/mod.rs b/crates/openhuman-embed/src/agent/mod.rs
index 287ad6df7f..5f8c6cf6b3 100644
--- a/crates/openhuman-embed/src/agent/mod.rs
+++ b/crates/openhuman-embed/src/agent/mod.rs
@@ -80,6 +80,11 @@ pub enum AgentError {
/// by every [`Turn`] it issues.
pub(crate) struct AgentInner {
pub(crate) id: String,
+ /// Keeps the runtime's core and (for an ephemeral workspace) its
+ /// directory alive for as long as this agent is, even after the host
+ /// drops its `Runtime` handle. See
+ /// [`CoreGuard`](crate::runtime::CoreGuard).
+ _runtime_guard: Arc<crate::runtime::CoreGuard>,
pub(crate) runtime: Arc<CoreRuntime>,
pub(crate) ctx: Arc<CoreContext>,
pub(crate) config: Config,