Lightweight coding agent that runs in your terminal
Rust
feat: only source shell snapshot if the file exists (#9197)
jif-oaibc6d9ef6fc32
diff --git a/codex-rs/core/src/tools/runtimes/mod.rs b/codex-rs/core/src/tools/runtimes/mod.rsindex 38bfaebe6c..044173bfbd 100644--- a/codex-rs/core/src/tools/runtimes/mod.rs+++ b/codex-rs/core/src/tools/runtimes/mod.rs@@ -58,6 +58,10 @@ pub(crate) fn maybe_wrap_shell_lc_with_snapshot(return command.to_vec();};+ if !snapshot.path.exists() {+ return command.to_vec();+ }+if command.len() < 3 {return command.to_vec();}