Fix execution brain tool permissions in non-interactive mode

Add --allowedTools flag to Claude Code CLI subprocess so tools are
pre-approved and don't prompt for permission in pipe mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cora-start
PeninsulaInd 2026-02-16 17:39:21 -06:00
parent 5e9cef5e39
commit 20708e6033
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ class LLMAdapter:
claude_bin, "-p", claude_bin, "-p",
"--output-format", "json", "--output-format", "json",
"--tools", tools, "--tools", tools,
"--allowedTools", tools,
] ]
if model: if model:
cmd.extend(["--model", model]) cmd.extend(["--model", model])