Overhaul shell detection and centralize command generation for unified exec (#6577)

This fixes command display for unified exec. All `cd`s and `ls`es are
now parsed.

<img width="452" height="237" alt="image"
src="https://github.com/user-attachments/assets/ce92d81f-f74c-485a-9b34-1eaa29290ec6"
/>

Deletes a ton of tests that were doing nothing from shell.rs.

---------

Co-authored-by: Pavel Krymets <pavel@krymets.com>
This commit is contained in:
pakrym-oai
2025-11-13 08:28:09 -08:00
committed by GitHub
parent ba74cee6f7
commit d28e912214
11 changed files with 284 additions and 412 deletions

View File

@@ -1,4 +1,3 @@
pub mod is_dangerous_command;
pub mod is_safe_command;
#[cfg(target_os = "windows")]
pub mod windows_safe_commands;