From d83480c6a660f1783a86f815c150a71f80f60615 Mon Sep 17 00:00:00 2001 From: Christopher Albert Date: Mon, 16 Nov 2026 09:16:10 +0100 Subject: [PATCH] Start sandboxed Claude in auto permission mode The ai launcher prepended --dangerously-skip-permissions to claude; it now prepends --permission-mode auto. --- docs/ai-sandbox.md | 2 +- scripts/ai-sandbox.sh | 2 +- tests/test_ai_sandbox_dispatch.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ai-sandbox.md b/docs/ai-sandbox.md index 3969ffe..36fb84f 100644 --- a/docs/ai-sandbox.md +++ b/docs/ai-sandbox.md @@ -76,7 +76,7 @@ ai prune # drop mounts whose sessions are gone ai stop ``` -The launcher prepends `--dangerously-skip-permissions` to `claude` and +The launcher prepends `--permission-mode auto` to `claude` and `--yolo --search` to `codex`; `dsh`, `opencode`, and `pi` receive supplied arguments unchanged. The profile setup may add an Incus proxy device for the host llama.cpp endpoint (`AI_LLAMA_PORT`, default `8080`). The proxy listens diff --git a/scripts/ai-sandbox.sh b/scripts/ai-sandbox.sh index 9635780..f06bbe0 100755 --- a/scripts/ai-sandbox.sh +++ b/scripts/ai-sandbox.sh @@ -381,7 +381,7 @@ if [[ $# -gt 0 ]]; then # configured. Other tools receive exactly the arguments supplied by the # caller. case "$1" in - claude) set -- claude --dangerously-skip-permissions "${@:2}" ;; + claude) set -- claude --permission-mode auto "${@:2}" ;; codex) set -- codex --yolo --search "${@:2}" ;; opencode|opencode2) OPENCODE_SERVICE_CLEANUP=1 diff --git a/tests/test_ai_sandbox_dispatch.sh b/tests/test_ai_sandbox_dispatch.sh index 8f0c139..6c8e565 100755 --- a/tests/test_ai_sandbox_dispatch.sh +++ b/tests/test_ai_sandbox_dispatch.sh @@ -44,7 +44,7 @@ run() { default_call="$(run claude --help)" grep -Fq 'exec ai-cloud' <<<"${default_call}" -grep -Fq -- 'claude --dangerously-skip-permissions --help' <<<"${default_call}" +grep -Fq -- 'claude --permission-mode auto --help' <<<"${default_call}" cloud_call="$(run cloud codex inspect)" grep -Fq 'exec ai-cloud' <<<"${cloud_call}"