From 14986c5193d44493600d68d603d1b45727b89b76 Mon Sep 17 00:00:00 2001 From: Ethan Date: Tue, 10 Mar 2026 19:16:21 -0700 Subject: [PATCH] fix: use login shell for layout file write in VM push_layout_to_vm used bare bash -c which lacks NixOS PATH, so base64 wasn't found and the layout file got corrupted content, causing zellij parse failure on attach. Co-Authored-By: Claude Opus 4.6 --- src/sandbox/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs index 3532f25..ae4b972 100644 --- a/src/sandbox/mod.rs +++ b/src/sandbox/mod.rs @@ -426,7 +426,7 @@ impl SandboxManager { let encoded = base64::engine::general_purpose::STANDARD.encode(content.as_bytes()); let path = format!("/tmp/devbox-layout-{layout_name}.kdl"); let cmd = format!("echo '{encoded}' | base64 -d > {path}"); - runtime.exec_cmd(name, &["bash", "-c", &cmd], false).await?; + runtime.exec_cmd(name, &["bash", "-lc", &cmd], false).await?; Ok(()) }