Skip to content

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

refactor(memory): wrap write dispatch call in a block

Steven Enamakelf6105345d804
diff --git a/crates/openhuman-core/src/memory/tools.rs b/crates/openhuman-core/src/memory/tools.rs
index 32ffc36acb..92b2866be1 100644
--- a/crates/openhuman-core/src/memory/tools.rs
+++ b/crates/openhuman-core/src/memory/tools.rs
@@ -196,7 +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)))
+ match tokio::task::spawn_blocking(move || {
+ runtime.block_on(write_dispatch.enter(call))
+ })
.await
{
Ok(result) => result,