feat: enable sandbox mode for agent-yolo profile

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
centdix
2026-02-21 01:49:44 +00:00
parent 4ab08cb6a1
commit b2fac069df
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -45,3 +45,4 @@ files:
sandbox:
enabled: false
toolchain: off
host_commands: ["cargo", "npm", "npx", "node", "git"]
+5
View File
@@ -95,6 +95,11 @@ export async function addWorktree(
args.push("-C"); // --no-pane-cmds
}
// Enable sandbox for yolo profile (safe to skip permissions inside container)
if (profile === "agent-yolo") {
args.push("-S"); // --sandbox
}
if (opts?.prompt) args.push("-p", opts.prompt);
args.push(branch);