Skip to content

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

chore: files changed crates/openhuman-core/src/memory/import.rs,crates/openhuman-core/src/memory/lay

Steven Enamakel78014dc94950
diff --git a/crates/openhuman-core/src/memory/import.rs b/crates/openhuman-core/src/memory/import.rs
index 63b06a721d..7530c6ef39 100644
--- a/crates/openhuman-core/src/memory/import.rs
+++ b/crates/openhuman-core/src/memory/import.rs
@@ -286,7 +286,8 @@ async fn launch(
);
let config = config.clone();
let task_ctx = ctx.clone();
- task_ctx.spawn(async move {
+ let spawn_ctx = task_ctx.clone();
+ spawn_ctx.spawn(async move {
{
let _guard = guard;
if mode == Mode::Import {
diff --git a/crates/openhuman-core/src/memory/layout_migration/ops.rs b/crates/openhuman-core/src/memory/layout_migration/ops.rs
index 3853782520..0be6c8a9f7 100644
--- a/crates/openhuman-core/src/memory/layout_migration/ops.rs
+++ b/crates/openhuman-core/src/memory/layout_migration/ops.rs
@@ -77,7 +77,7 @@ pub fn start(
host,
|| IMPORT.is_running(&config.workspace_dir) || BACKFILL.is_running(&config.workspace_dir),
trigger,
- paused,
+ move || paused(),
)
}
@@ -98,7 +98,7 @@ pub fn tick(
config.workspace_dir.clone(),
host,
|| IMPORT.is_running(&config.workspace_dir) || BACKFILL.is_running(&config.workspace_dir),
- paused,
+ move || paused(),
)
}
diff --git a/crates/openhuman-core/src/memory/run_slots.rs b/crates/openhuman-core/src/memory/run_slots.rs
index 741f43ee79..254e84177e 100644
--- a/crates/openhuman-core/src/memory/run_slots.rs
+++ b/crates/openhuman-core/src/memory/run_slots.rs
@@ -7,7 +7,7 @@
use std::path::{Path, PathBuf};
use std::sync::LazyLock;
-use tinymemory_tools::run_slots::{RunGuard, RunSlots, RunStartGate};
+use tinymemory_tools::run_slots::{RunGuard, RunSlots, RunStartGate, StartGate};
pub(crate) static START_GATE: LazyLock<RunStartGate> = LazyLock::new(RunStartGate::new);
pub(crate) static BACKFILL: LazyLock<RunSlots<PathBuf>> = LazyLock::new(RunSlots::new);