mirror of
https://github.com/openai/codex.git
synced 2026-05-02 02:17:22 +00:00
feat: only source shell snapshot if the file exists (#9197)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user