fix: return empty response for Allow decisions to preserve Claude permissions#97
Merged
backnotprop merged 1 commit intomainfrom Jan 16, 2026
Merged
fix: return empty response for Allow decisions to preserve Claude permissions#97backnotprop merged 1 commit intomainfrom
backnotprop merged 1 commit intomainfrom
Conversation
…missions
For PreToolUse and PermissionRequest hooks, returning an explicit
`permissionDecision: "allow"` bypasses Claude's native permission system.
Per Claude Code docs, returning an empty `{}` response means "I have no
objections" and lets Claude fall through to its own permission settings.
This fix ensures cupcake only intervenes with explicit responses for
Block/Deny/Ask decisions, not for Allow.
Fixes #96
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
permissionDecision: "allow"bypasses Claude's native permission system{}response means "I have no objections" and lets Claude fall through to its own permission settingsVerification
Verified against Claude Code 2.1.9 source (
cli.js):permissionDecision: "allow"→ Sets behavior → "bypassing permission check"{}→$is undefined → Falls through to normal permission checkTest plan
Fixes #96
🤖 Generated with Claude Code