Record in bench.py why the clone's settings need no deny
This commit is contained in:
@@ -48,7 +48,8 @@ def permission_flags(clone, version_dir, report):
|
||||
# before reading either file. An edit to .git/ could add a hook, which runs any command.
|
||||
outside = (" /", "=/", " ~", "=~", "../", " ..", "$", "O/", "X/")
|
||||
denied = [f"Edit(/{clone}/.git/**)", *(f"Bash(git *{shape}*)" for shape in outside)]
|
||||
# Only the clone's own settings: the user's add every checkout under ~/code to the readable trees.
|
||||
# Only the clone's own settings: the user's add every checkout under ~/code to the readable trees. A run
|
||||
# cannot widen the clone's settings either: Claude Code refuses its edit to them, as a probe showed.
|
||||
return ["--setting-sources", "project,local", "--permission-mode", "dontAsk", "--permission-prompts", "none",
|
||||
"--allowedTools", *allowed, "--disallowedTools", *denied]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user