Skip to content

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

fix(memory): use ctx for compaction prefetch span

Steven Enamakela6de7cf8c6ef
diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
index 3039938f7b..fa24145ef2 100644
--- a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
@@ -215,7 +215,7 @@ pub(crate) fn compaction(
enqueue(
cache,
key,
- Box::pin(dispatch.enter(async move {
+ Box::pin(ctx.enter(async move {
hooks::compaction_work(&config, &identity, &thread, dropped).await
})),
);