Skip to content

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

fix(scheduler): handle agent run scheduling edge case

Steven Enamakel862c321809e7
diff --git a/crates/openhuman-core/src/cron/scheduler/agent_run.rs b/crates/openhuman-core/src/cron/scheduler/agent_run.rs
index 0ac697f77d..1075ac2d7a 100644
--- a/crates/openhuman-core/src/cron/scheduler/agent_run.rs
+++ b/crates/openhuman-core/src/cron/scheduler/agent_run.rs
@@ -237,15 +237,6 @@ 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()
- });
-}
-
/// Keep a scheduled turn from auto-resuming another session's transcript.
///
/// Mirrors `flows::ops::builder::start_builder_turn_clean`: an unthreaded