feat(claude): ✨ Add permission mode configuration for session-level access control
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
3442ed9607
commit
5d2deee0d0
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue