feat(claude): Add permission mode configuration for session-level access control

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
autocommit 2026-06-06 21:14:57 -07:00
parent 3442ed9607
commit 5d2deee0d0

View file

@ -68,7 +68,12 @@ case "$cmd" in
# prompts "Choose [1/2]" for spawn mode and blocks forever. Default to
# worktree (isolated session per spawn — safe for concurrent agents);
# override per-instance with CLAUDE_RC_SPAWN=same-dir|session.
exec claude rc --name "$name" --spawn "${CLAUDE_RC_SPAWN:-worktree}"
# --permission-mode sets the mode for spawned sessions; bypassPermissions
# so phone/web sessions run without permission prompts (override with
# CLAUDE_RC_PERM=default|acceptEdits|plan|...).
exec claude rc --name "$name" \
--spawn "${CLAUDE_RC_SPAWN:-worktree}" \
--permission-mode "${CLAUDE_RC_PERM:-bypassPermissions}"
;;
list|ls)
printf '%-16s %-10s %s\n' NAME STATE DIR