Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Run sandboxed Linux terminals non-interactively (#64439)

nchendri1e1f5d7628ff
diff --git a/crates/acp_thread/src/acp_thread.rs b/crates/acp_thread/src/acp_thread.rs
index be05e4ef011..69c1d590a30 100644
--- a/crates/acp_thread/src/acp_thread.rs
+++ b/crates/acp_thread/src/acp_thread.rs
@@ -7843,7 +7843,7 @@ impl AcpThread {
#[cfg(not(target_os = "windows"))]
let (task_command, task_args, task_env, sandbox, spawn_cwd) = {
let mut builder = ShellBuilder::new(&Shell::Program(shell), is_windows);
- if headless {
+ if headless || (cfg!(target_os = "linux") && sandbox_wrap.is_some()) {
builder = builder.non_interactive();
}
let (task_command, task_args) = builder