Claude Code: Permission Rule Fixes for Subagents, Skills and Loops
Version 2.1.331 fixes several permission behaviors: a rule such as Agent(model:*) blocking follow-up messages to subagents, PermissionRequest hooks not saving Skill(name:*) allow rules, and auto mode sometimes refusing to stop a /loop. It also changes what a PermissionDenied hook's retry: true tells Claude.
Key Takeaways
Agent(model:*)rules no longer block follow-up messages to subagents started without a named model.PermissionRequesthooks now saveSkill(name:*)allow rules outside local settings.- Auto mode no longer refuses to stop a
/loop, so pending wake-ups do not fire. PermissionDeniedwithretry: truenow means retry only if the user asked for that call.- Under
allowManagedPermissionRulesOnly, VS Code cards show only Yes and No, and key 2 answers No. - Escape on a VS Code permission prompt cancels cleanly instead of sending half-typed text.
Subagent follow-ups no longer blocked
A permission rule on a subagent's model, such as Agent(model:*), could block Claude's follow-up message to a subagent that was started with no model named. That is fixed for subagents started on this version.
Skill allow rules saved by hooks
PermissionRequest hooks did not save Skill(name:*) allow rules outside local settings. They now do, so a hook-granted skill permission persists where the user expects.
Auto mode and /loop
Auto mode sometimes refused Claude's call to stop a /loop, which left the next wake-up to fire. Stopping a loop now works as intended.
A behavior change for PermissionDenied hooks
What a PermissionDenied hook's retry: true tells Claude has changed: Claude should make the refused call again only if the user asked for that exact call. This reduces surprise retries of denied actions.
Sandboxed Bash and VS Code approvals
Sandboxed Bash commands sometimes failed to start on a full temp disk when file rules kept commands out of the temp directory; that is fixed. In VS Code, permission cards show only Yes and No when allowManagedPermissionRulesOnly is set and the card would offer an allow rule, so key 2 on those cards now answers No. Pressing Escape on a permission prompt no longer sends a half-typed instruction to Claude, and an edited command on a permission prompt keeps the line breaks typed or pasted into it.