fix(mma-exec): add --dangerously-skip-permissions for headless file writes

Tier 3 workers need to read/write files in headless mode. Without this
flag, all file tool calls are blocked waiting for interactive permission.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 14:20:38 -05:00
parent 36d464f82f
commit f7e417b3df

View File

@@ -191,7 +191,7 @@ def execute_agent(role: str, prompt: str, docs: list[str]) -> str:
ps_command = ( ps_command = (
"if (Test-Path 'C:\\projects\\misc\\setup_claude.ps1') " "if (Test-Path 'C:\\projects\\misc\\setup_claude.ps1') "
"{ . 'C:\\projects\\misc\\setup_claude.ps1' }; " "{ . 'C:\\projects\\misc\\setup_claude.ps1' }; "
f"claude --model {model} --print" f"claude --model {model} --print --dangerously-skip-permissions"
) )
cmd = ['powershell.exe', '-NoProfile', '-Command', ps_command] cmd = ['powershell.exe', '-NoProfile', '-Command', ps_command]
try: try: