diff --git a/crates/openshell-cli/src/run.rs b/crates/openshell-cli/src/run.rs index a2ad725a4..56154823c 100644 --- a/crates/openshell-cli/src/run.rs +++ b/crates/openshell-cli/src/run.rs @@ -3108,6 +3108,7 @@ async fn sandbox_exec_interactive_grpc( let mut exit_code = 0i32; let stdout = std::io::stdout(); + let stderr = std::io::stderr(); while let Some(event) = stream.next().await { let event = event.into_diagnostic()?; @@ -3118,7 +3119,7 @@ async fn sandbox_exec_interactive_grpc( handle.flush().into_diagnostic()?; } Some(exec_sandbox_event::Payload::Stderr(err)) => { - let mut handle = stdout.lock(); + let mut handle = stderr.lock(); handle.write_all(&err.data).into_diagnostic()?; handle.flush().into_diagnostic()?; }