@@ -740,7 +740,7 @@ impl SandboxManager {
740740
741741 let mut cmd = Command :: new ( & tool_path) ;
742742 cmd. args ( args) ;
743- cmd. stdin ( Stdio :: null ( ) ) ;
743+ cmd. stdin ( Stdio :: inherit ( ) ) ;
744744 cmd. stdout ( Stdio :: piped ( ) ) ;
745745 cmd. stderr ( Stdio :: piped ( ) ) ;
746746
@@ -805,11 +805,23 @@ impl SandboxManager {
805805 }
806806 }
807807
808- if let Some ( stdout) = child. stdout . take ( ) {
808+ let stdout_handle = child. stdout . take ( ) ;
809+ let stderr_handle = child. stderr . take ( ) ;
810+
811+ if let Some ( stdout) = stdout_handle {
809812 let reader = BufReader :: new ( stdout) ;
810813 for line in reader. lines ( ) {
811814 if let Ok ( line) = line {
812- println ! ( " [Output] {}" , line) ;
815+ println ! ( "{}" , line) ;
816+ }
817+ }
818+ }
819+
820+ if let Some ( stderr) = stderr_handle {
821+ let reader = BufReader :: new ( stderr) ;
822+ for line in reader. lines ( ) {
823+ if let Ok ( line) = line {
824+ eprintln ! ( "{}" , line) ;
813825 }
814826 }
815827 }
@@ -1341,8 +1353,14 @@ impl PluginManager {
13411353 } ,
13421354 } ;
13431355
1356+ let plugin_path = plugin. path . to_str ( )
1357+ . ok_or ( "Invalid plugin path" ) ?
1358+ . to_string ( ) ;
1359+
1360+ println ! ( " [Plugin] Executing: {} with args: {:?}" , plugin_path, args) ;
1361+
13441362 sandbox. execute_sandboxed (
1345- plugin . path . to_str ( ) . unwrap ( ) ,
1363+ & plugin_path ,
13461364 args,
13471365 sandbox_config,
13481366 ) ?;
@@ -3019,7 +3037,7 @@ impl LucidShell {
30193037 }
30203038
30213039 fn panic_wipe ( & mut self ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
3022- println ! ( "\n PANIC WIPE INITIATED" ) ;
3040+ println ! ( "\n ⚠ PANIC WIPE INITIATED" ) ;
30233041
30243042 let mut logger = self . log_writer . lock ( ) . unwrap ( ) ;
30253043 let _ = logger. log_event ( "PANIC_WIPE" , "emergency_termination" , & self . crypto_engine ) ;
0 commit comments