Skip to content

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

refactor(memory): route write dispatch through spawn_blocking helper

Steven Enamakel97b82ba29a4e
diff --git a/crates/openhuman-core/src/memory/tools.rs b/crates/openhuman-core/src/memory/tools.rs
index 92b2866be1..49c1175544 100644
--- a/crates/openhuman-core/src/memory/tools.rs
+++ b/crates/openhuman-core/src/memory/tools.rs
@@ -196,10 +196,9 @@ impl MemoryTool {
let outcome = if is_write_action(&args) {
let runtime = tokio::runtime::Handle::current();
let write_dispatch = dispatch.clone();
- match tokio::task::spawn_blocking(move || {
- runtime.block_on(write_dispatch.enter(call))
- })
- .await
+ match write_dispatch
+ .spawn_blocking(move || runtime.block_on(call))
+ .await
{
Ok(result) => result,
Err(_) => {