diff --git a/src/servers/sidecar/sandbox.ts b/src/servers/sidecar/sandbox.ts index b61535da..50cd2384 100644 --- a/src/servers/sidecar/sandbox.ts +++ b/src/servers/sidecar/sandbox.ts @@ -78,11 +78,10 @@ export function buildSandboxPrefix(email: string): string[] { // Bun runtime (e.g. /home/pastilhas/.bun) args.push('--ro-bind', BUN_DIR, BUN_DIR); - // npm global packages (~/.local/lib) — pi and its dependencies - const localLib = join(homeDir, '.local', 'lib'); - if (existsSync(localLib)) { - args.push('--perms', '0755', '--dir', join(homeDir, '.local')); - args.push('--ro-bind', localLib, localLib); + // User-local installs (~/.local) — claude binary, pi npm packages, etc. + const localDir = join(homeDir, '.local'); + if (existsSync(localDir)) { + args.push('--ro-bind', localDir, localDir); } // Project source (for MCP server)