The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/cron/store_tests.rs,crates/openhuman-core/src/flows/b
Steven Enamakel39fc4c523358
diff --git a/crates/openhuman-core/src/cron/store_tests.rs b/crates/openhuman-core/src/cron/store_tests.rsindex e3935a83e6..f879026930 100644--- a/crates/openhuman-core/src/cron/store_tests.rs+++ b/crates/openhuman-core/src/cron/store_tests.rs@@ -17,6 +17,34 @@ fn test_config(tmp: &TempDir) -> Config {config}+#[test]+fn remove_job_does_not_write_to_stdout() {+ use std::process::Command;++ const CHILD: &str = "OPENHUMAN_CRON_REMOVE_STDOUT_CHILD";+ if let Ok(workspace) = std::env::var(CHILD) {+ let config = Config {+ workspace_dir: workspace.into(),+ action_dir: std::env::temp_dir(),+ ..Config::default()+ };+ remove_job(&config, &std::env::var("OPENHUMAN_CRON_REMOVE_JOB").unwrap()).unwrap();+ return;+ }++ let tmp = TempDir::new().unwrap();+ let config = test_config(&tmp);+ let job = add_job(&config, "*/5 * * * *", "echo remove").unwrap();+ let output = Command::new(std::env::current_exe().unwrap())+ .args(["--exact", "cron::store::tests::remove_job_does_not_write_to_stdout", "--nocapture"])+ .env(CHILD, &config.workspace_dir)+ .env("OPENHUMAN_CRON_REMOVE_JOB", &job.id)+ .output()+ .unwrap();+ assert!(output.status.success(), "{}", String::from_utf8_lossy(&output.stderr));+ assert!(output.stdout.is_empty(), "unexpected stdout: {}", String::from_utf8_lossy(&output.stdout));+}+#[cfg(feature = "storage-sqlite")]#[test]fn jobs_live_in_the_workspace_default_database() {diff --git a/crates/openhuman-core/src/flows/bus_trigger_queue_tests.rs b/crates/openhuman-core/src/flows/bus_trigger_queue_tests.rsindex 2ccd2c50bf..cb2a7bebff 100644--- a/crates/openhuman-core/src/flows/bus_trigger_queue_tests.rs+++ b/crates/openhuman-core/src/flows/bus_trigger_queue_tests.rs@@ -41,6 +41,29 @@ async fn schedule_tick_is_coalesced_while_a_trigger_run_is_active() {);}+#[tokio::test]+async fn refreshing_config_keeps_the_subscriber_and_uses_the_new_snapshot() {+ use tokio::sync::mpsc;++ let tmp = tempfile::TempDir::new().unwrap();+ let initial = test_config(&tmp);+ let refreshed = Config {+ action_dir: tmp.path().join("refreshed-action-root"),+ ..initial.clone()+ };+ let (seen_tx, mut seen_rx) = mpsc::unbounded_channel();+ let runner = move |_ctx: crate::core::runtime::DispatchCtx,+ config: Arc<Config>,+ _request: crate::flows::bus::trigger::TriggerRunRequest| {+ let seen_tx = seen_tx.clone();+ async move { seen_tx.send(config.action_dir.clone()).unwrap(); }+ };+ let subscriber = FlowTriggerSubscriber::with_runner(Arc::new(initial), 1, runner);+ subscriber.set_config(Arc::new(refreshed.clone()));+ subscriber.dispatch_test_schedule(&crate::core::runtime::DispatchCtx::host_default(), "refresh-flow").await;+ assert_eq!(seen_rx.recv().await, Some(refreshed.action_dir));+}+#[tokio::test]async fn app_event_runs_queue_fifo_per_tenant_while_other_tenants_progress() {use crate::core::runtime::{ContextOverlay, CoreContext, DispatchCtx, DomainSet};