diff --git a/codex-rs/app-server/src/request_processors/feedback_doctor_report.rs b/codex-rs/app-server/src/request_processors/feedback_doctor_report.rs index 3bd9c9fd9bc4..2c157b556fd1 100644 --- a/codex-rs/app-server/src/request_processors/feedback_doctor_report.rs +++ b/codex-rs/app-server/src/request_processors/feedback_doctor_report.rs @@ -8,6 +8,7 @@ //! attaching exactly the same JSON a user could copy from the CLI. use std::collections::BTreeMap; +use std::process::Stdio; use std::time::Duration; use codex_core::config::Config; @@ -42,6 +43,7 @@ pub(crate) async fn doctor_feedback_report(config: &Config) -> Option output, diff --git a/codex-rs/cli/src/doctor/git.rs b/codex-rs/cli/src/doctor/git.rs index 390a624f6fcf..6556893fba12 100644 --- a/codex-rs/cli/src/doctor/git.rs +++ b/codex-rs/cli/src/doctor/git.rs @@ -2,6 +2,7 @@ use std::collections::BTreeSet; use std::path::Path; use std::path::PathBuf; use std::process::Output; +use std::process::Stdio; use std::time::Duration; use codex_git_utils::get_git_repo_root; @@ -195,6 +196,7 @@ async fn git_output(git_path: &Path, cwd: &Path, args: &[&str]) -> Option Result<()> { /// Restore the terminal after Codex is exiting. /// -/// Uses a stronger keyboard reset than [`restore`] so the parent shell recovers even if a +/// Uses a stronger keyboard reset than `restore` so the parent shell recovers even if a /// terminal missed the stack pop that normally pairs with [`set_modes`]. pub fn restore_after_exit() -> Result<()> { let mut first_error = diff --git a/codex-rs/windows-sandbox-rs/src/setup.rs b/codex-rs/windows-sandbox-rs/src/setup.rs index 1044c10ceea2..66d203bd74fb 100644 --- a/codex-rs/windows-sandbox-rs/src/setup.rs +++ b/codex-rs/windows-sandbox-rs/src/setup.rs @@ -345,7 +345,10 @@ fn run_setup_refresh_payload(b64: &str, codex_home: &Path) -> Result<()> { }; // Refresh should never request elevation; ensure verb isn't set and we don't trigger UAC. let mut cmd = Command::new(&exe); - cmd.arg(b64).stdout(Stdio::null()).stderr(Stdio::null()); + cmd.arg(b64) + .stdin(Stdio::null()) + .stdout(Stdio::null()) + .stderr(Stdio::null()); let cwd = std::env::current_dir().unwrap_or_else(|_| codex_home.to_path_buf()); log_note( &format!(