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/agent/session_host/runtime_session/memory_ingest.rs,c

Steven Enamakel5e2ea81dfc86
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 f856d23a77..60ed306996 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
@@ -248,7 +248,9 @@ impl OpenHumanTurnPrelude {
let Some(config) = prelude.memory_config().await else {
return;
};
+ let dispatch = prelude.dispatch_ctx();
hooks::post_turn(
+ &dispatch,
&config,
&pending.identity,
thread_id,
diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
index 6d39e47638..799477fec5 100644
--- a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
@@ -261,11 +261,12 @@ pub(crate) fn compaction(
&Key::with_fingerprint(&config, fingerprint, &identity, &thread, false),
)
});
+ let dispatch = ctx.clone();
enqueue(
cache,
key,
Box::pin(ctx.enter(async move {
- hooks::compaction_work(&config, &identity, &thread, dropped).await
+ hooks::compaction_work(&dispatch, &config, &identity, &thread, dropped).await
})),
);
pack.map(cached_notice)