Skip to content

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

fix(cron): handle missing agent run in scheduler

Steven Enamakel17352b3a7ff5
diff --git a/crates/openhuman-core/src/cron/scheduler/agent_run.rs b/crates/openhuman-core/src/cron/scheduler/agent_run.rs
index 83ef0e887d..c6e1d399e7 100644
--- a/crates/openhuman-core/src/cron/scheduler/agent_run.rs
+++ b/crates/openhuman-core/src/cron/scheduler/agent_run.rs
@@ -237,6 +237,15 @@ pub(super) fn run_flow_schedule_job(job: &CronJob) -> (bool, String) {
/// no text. Never delivered to chat — used only for the run-history record.
pub(super) const EMPTY_AGENT_OUTPUT: &str = "agent job executed";
+/// Keep a scheduled turn from auto-resuming another session's transcript.
+pub(super) fn start_cron_turn_clean(agent: &mut OpenHumanSessionHost) {
+ tracing::debug!("[cron] suppressing transcript autoload for scheduled turn");
+ agent.set_next_turn_overrides(crate::agent::session_host::TurnOverrides {
+ suppress_transcript_autoload: true,
+ ..Default::default()
+ });
+}
+
pub(super) struct BuiltCronAgent {
pub(crate) agent: OpenHumanSessionHost,
}