Bash permission allow rules not honored — "don't ask again" doesn't persist
Resolved 💬 4 comments Opened Mar 24, 2026 by P-Lloret Closed Mar 24, 2026
Bug Description
Bash permission allow rules in settings.local.json and ~/.claude/settings.json are not being applied. Selecting option 2 ("Yes, and don't ask again for: X") writes the rule to the file but does not prevent future prompts — even within the same session, on the very next command.
Reproduction Steps
- Have
Bash(gcloud functions:*)in.claude/settings.local.jsonunderpermissions.allow - Run a command like:
gcloud functions logs read my-function --project=my-project --region=us-central1 --limit=50 - Get prompted with the 3 options (Yes / Yes, and don't ask again / No)
- Select option 2: "Yes, and don't ask again for: gcloud functions:*"
- Claude runs the command successfully
- Claude immediately runs another
gcloud functions logs read ...command in the same turn - Gets prompted again despite option 2 just being selected
Configuration
~/.claude/settings.json:
{
"permissions": {
"allow": [
"Bash(gcloud functions:*)"
]
}
}
.claude/settings.local.json (project-level, written by option 2):
{
"permissions": {
"allow": [
"Bash(gcloud functions logs read:*)",
"Bash(gcloud functions describe:*)",
"Bash(gcloud functions:*)",
"Bash(gcloud:*)"
]
}
}
All four rules exist — narrow and broad — and none are honored.
Expected Behavior
- Permission rules in
settings.local.jsonand~/.claude/settings.jsonshould auto-allow matching Bash commands without prompting - At minimum, selecting option 2 should persist within the current session
Actual Behavior
- Every
gcloud functions logs readcommand prompts for approval regardless of allow rules - Option 2 does not persist even within the same session/turn
- This has been happening for months across many sessions
Environment
- macOS (Darwin 25.3.0)
- Claude Code CLI
- Multiple
gcloudprefix rules tested:gcloud:*,gcloud functions:*,gcloud functions logs read:*,gcloud functions logs read *
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗