diff --git a/src/cron/scheduler.rs b/src/cron/scheduler.rs index 5373e61..d09388e 100644 --- a/src/cron/scheduler.rs +++ b/src/cron/scheduler.rs @@ -10,6 +10,7 @@ use crate::security::SecurityPolicy; use anyhow::Result; use chrono::{DateTime, Utc}; use futures_util::{stream, StreamExt}; +use std::process::Stdio; use std::sync::Arc; use tokio::process::Command; use tokio::time::{self, Duration}; @@ -430,6 +431,9 @@ async fn run_job_command_with_timeout( .arg("-lc") .arg(&job.command) .current_dir(&config.workspace_dir) + .stdin(Stdio::null()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) .kill_on_drop(true) .spawn() { diff --git a/src/providers/gemini.rs b/src/providers/gemini.rs index 8e85ef1..fd14ca9 100644 --- a/src/providers/gemini.rs +++ b/src/providers/gemini.rs @@ -689,7 +689,10 @@ mod tests { #[tokio::test] async fn warmup_without_key_is_noop() { - let provider = GeminiProvider::new(None); + let provider = GeminiProvider { + auth: None, + client: Client::new(), + }; let result = provider.warmup().await; assert!(result.is_ok()); }