Skip to content

Commit 849e3a6

Browse files
fix: pass --permission-mode bypassPermissions to claude -p in executor (#37)
The claude-code executor branch invoked `claude -p` without a permission mode, so the inner Claude session would refuse to edit files in non-interactive mode and the run would silently produce no patch. Governor already isolates each attempt in a temporary git worktree, and scope.py rejects any change outside allowed_paths — the kernel is the trust boundary, the inner session does not need its own permission prompts. examples/oss_fix_demo/ was working around this with a custom executor; with this fix the bundled executor.sh works out of the box.
1 parent c21cd92 commit 849e3a6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

roles/executor.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ case "$TOOL" in
5151
aider --message "$PROMPT" --yes --no-pretty --auto-commits=false 2>&1 || true
5252
;;
5353
claude-code)
54-
claude -p "$PROMPT" 2>&1 || true
54+
# bypassPermissions: governor already isolates each attempt in a temporary
55+
# git worktree, and scope.py rejects any change outside allowed_paths.
56+
# The kernel is the trust boundary; the inner claude -p session does not
57+
# need its own permission prompts.
58+
claude -p "$PROMPT" --permission-mode bypassPermissions 2>&1 || true
5559
;;
5660
*)
5761
echo "error: unknown coding_agent.tool: $TOOL" >&2

0 commit comments

Comments
 (0)