From 9b8d4d882e8fcabd76a774346a659e9165429e93 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 20 Feb 2026 08:25:24 -0800 Subject: [PATCH] Set explicit PATH in shell container exec --- src/vm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.ts b/src/vm.ts index 00a1867..c749e96 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -206,7 +206,7 @@ export async function claude(workdir: string, opts?: { prompt?: string; print?: export async function shell(workdir?: string): Promise { const args = ["container", "exec", "-it", "--user", USER] if (workdir) args.push("--workdir", containerPath(workdir)) - args.push(CONTAINER_NAME, "env", "TERM=xterm-256color", "fish", "--login") + args.push(CONTAINER_NAME, "env", "TERM=xterm-256color", `PATH=/home/${USER}/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`, "fish", "--login") const proc = Bun.spawn(args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }) await proc.exited }