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

This commit is contained in:
jif-oai authored and GitHub committed 2026-01-14 01:28:25 -08:00
1 parent dc3deaa3e7
commit bc6d9ef6fc
1 file changed
+4
+4
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();
}