diff --git a/codex-rs/session/src/spawn.rs b/codex-rs/session/src/spawn.rs index cd61af0bfd..d74bcc63d7 100644 --- a/codex-rs/session/src/spawn.rs +++ b/codex-rs/session/src/spawn.rs @@ -7,9 +7,6 @@ use std::fs::OpenOptions; use tokio::process::Child; use tokio::process::Command; -// ----------------------------------------------------------------------------- -// Internal helpers - /// Open (and create if necessary) the log files that stdout / stderr of the /// spawned agent will be redirected to. fn open_log_files(paths: &Paths) -> Result<(std::fs::File, std::fs::File)> { @@ -39,9 +36,6 @@ fn base_command(bin: &str, paths: &Paths) -> Result { Ok(cmd) } -// ----------------------------------------------------------------------------- -// exec -- non-interactive batch agent - pub fn spawn_exec(paths: &Paths, exec_args: &[String]) -> Result { #[cfg(unix)] { @@ -86,9 +80,6 @@ pub fn spawn_exec(paths: &Paths, exec_args: &[String]) -> Result { } } -// ----------------------------------------------------------------------------- -// repl -- interactive FIFO stdin - pub fn spawn_repl(paths: &Paths, repl_args: &[String]) -> Result { #[cfg(unix)] { diff --git a/codex-rs/session/src/store.rs b/codex-rs/session/src/store.rs index c2b71c1f26..7ff62bbbdc 100644 --- a/codex-rs/session/src/store.rs +++ b/codex-rs/session/src/store.rs @@ -223,9 +223,7 @@ pub async fn kill_session(id: &str) -> Result<()> { ); } - //--------------------------------------------------------------------- // Step 1 -- send graceful termination. - //--------------------------------------------------------------------- #[cfg(unix)] { @@ -259,9 +257,7 @@ pub async fn kill_session(id: &str) -> Result<()> { tokio::time::sleep(poll_interval).await; } - //--------------------------------------------------------------------- // Step 2 -- force kill if necessary. - //--------------------------------------------------------------------- if still_running { #[cfg(unix)]