Skip to content

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

fix: import dispatch context for memory ingest

Steven Enamakel9f4a5210793d
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs
index 17498284aa..54f4bfdc25 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread.rs
@@ -11,7 +11,6 @@
use crate::agent::harness::host_definition::AgentDefinitionRegistry;
use crate::agent::subagent_host::{run_subagent_with_parent, SubagentRunOptions};
-use crate::core::runtime::DispatchCtx;
use crate::threads::store as conversations;
use async_trait::async_trait;
use serde_json::json;
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs
index 833a19058d..4262865c99 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs
@@ -24,6 +24,7 @@ use tinyinference_llm::message::Message;
use super::OpenHumanTurnPrelude;
use crate::agent::tinyagents::host::OpenHumanRunContext;
+use crate::core::runtime::DispatchCtx;
use crate::memory::lifecycle::hooks::{
self, MemoryTurn, PostTurnInput, PreTurnInput, ToolCallSummary,
};
@@ -233,7 +234,8 @@ impl OpenHumanTurnPrelude {
)
.await;
};
- crate::core::runtime::DispatchCtx::ambient().spawn(deferred_memory_work(profile_context, work));
+ crate::core::runtime::DispatchCtx::ambient()
+ .spawn(deferred_memory_work(profile_context, work));
}
}