Skip to content

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

fix(memory): pass dispatch context to resume_interrupted_with

Steven Enamakela1de6ffa98f4
diff --git a/crates/openhuman-core/src/memory/import.rs b/crates/openhuman-core/src/memory/import.rs
index 25191b2042..bb067d273e 100644
--- a/crates/openhuman-core/src/memory/import.rs
+++ b/crates/openhuman-core/src/memory/import.rs
@@ -199,6 +199,7 @@ pub async fn resume_interrupted(ctx: &crate::core::runtime::DispatchCtx, config:
&& file.paused_for_credits
&& super::billing::free_period_active(config).await;
resume_interrupted_with(
+ ctx,
config,
Arc::new(scheduler_paused),
Arc::new(move |_: &Config| free),
@@ -215,6 +216,7 @@ pub async fn resume_interrupted(ctx: &crate::core::runtime::DispatchCtx, config:
/// that cannot start is persisted as stopped, so a failure that would recur
/// does not loop. Returns whether a run was started.
pub(crate) async fn resume_interrupted_with(
+ ctx: &crate::core::runtime::DispatchCtx,
config: &Config,
paused: PauseCheck,
billing: BillingCheck,