Skip to content

Commit df71e04

Browse files
fix(sandbox): allow writes to plugin cache for uv-based hooks
Plugin hooks (tool-routing, buildkite) use `uv run` which needs to create a .venv inside ~/.claude/plugins/cache/. Without write access, every Bash tool call triggers PreToolUse hook errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5270f16 commit df71e04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

claude/roles/base.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@
107107
"allowWrite": [
108108
// interactive terminals for things like lefthook interactive
109109
"/dev/ptmx",
110-
"/dev/ttys*"
110+
"/dev/ttys*",
111+
// plugin hooks use uv run which needs to create .venv in cache
112+
"~/.claude/plugins/cache"
111113
]
112114
}
113115
},

0 commit comments

Comments
 (0)