Start sessions with --dangerously-skip-permissions
Unattended sessions otherwise stop at every tool approval until someone answers through Remote Control. The limits that make this acceptable (bot token scoped to allowlisted repos, branch protection, nothing production on the box) are written down in the README's security model, along with the remaining risk of prompt injection. The one-time bypass-mode warning would block an unattended session. It's suppressed by skipDangerousModePermissionPrompt in ~/.claude/settings.json, and if it ever shows anyway, status now reports it as needs_attention, the same way as the folder-trust prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CyWXJ3BVzrZ9VWk5c2CoAr
This commit is contained in:
parent
b55ea07c96
commit
ece7458a55
3 changed files with 34 additions and 6 deletions
|
|
@ -110,9 +110,12 @@ class ClaudeArgs(unittest.TestCase):
|
|||
first = sc.claude_args(state, "dev-box", projects)
|
||||
self.assertEqual(first[-2:], ["--session-id", state["uuid"]])
|
||||
self.assertIn("dev-box-s1", first)
|
||||
self.assertIn("--dangerously-skip-permissions", first)
|
||||
(projects / "-home-agent-sessions-s1").mkdir()
|
||||
(projects / "-home-agent-sessions-s1" / f"{state['uuid']}.jsonl").write_text("")
|
||||
self.assertEqual(sc.claude_args(state, "dev-box", projects)[-2:], ["--resume", state["uuid"]])
|
||||
resumed = sc.claude_args(state, "dev-box", projects)
|
||||
self.assertEqual(resumed[-2:], ["--resume", state["uuid"]])
|
||||
self.assertIn("--dangerously-skip-permissions", resumed)
|
||||
|
||||
|
||||
class MainContract(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue