fix: Write tool needs its own permission rule on Claude Code 2.1.204#1051
Merged
Conversation
Run 29441419112: agent correctly wrote .decision/ files but Write was denied - Edit(path) rules do not cover the Write tool until 2.1.210 (whose changelog deprecates Write(path) rules, confirming the mapping is new). The action's pinned runtime is 2.1.204, so keep both rule forms. Also allow mkdir (agent creates .decision/ before writing). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s Claude Code permissions configuration to unblock the pinned Claude Code Action (v2.1.204) from writing .decision files during automated runs.
Changes:
- Add an explicit
Write(.decision/**)permission rule (needed for Claude Code 2.1.204 behavior). - Add a
Bash(mkdir:*)allow rule to permit directory creation during runs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
20
to
23
| "Edit(.decision/**)", | ||
| "Write(.decision/**)", | ||
| "Bash(mkdir:*)", | ||
| "mcp__barkme__notify" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run 29441419112 transcript: the decider agent wrote correct .decision files but all Write calls were denied. Edit(path) rules only cover Write from Claude Code 2.1.210; the pinned action runs 2.1.204. Added Write(.decision/**) + Bash(mkdir:*).
🤖 Generated with Claude Code