feat: only source shell snapshot if the file exists (#9197)

This commit is contained in:
jif-oai
2026-01-14 09:28:25 +00:00
committed by GitHub
parent dc3deaa3e7
commit bc6d9ef6fc

View File

@@ -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();
}