--dangerously-skip-permissions still prompts for confirmation on Bash commands

Resolved 💬 5 comments Opened Mar 9, 2026 by uma-sudo Closed Apr 21, 2026

Description

Running Claude Code v2.1.71 with --dangerously-skip-permissions flag, but still getting a permission confirmation prompt for gcloud run deploy commands.

Error Message

Permission rule Bash(gcloud run deploy:*) requires confirmation for this command.
/permissions to update rules

Environment

  • Claude Code version: 2.1.71
  • OS: macOS (Darwin 25.3.0, Apple Silicon)
  • Shell: zsh
  • Launch command: claude --dangerously-skip-permissions

Settings

  • ~/.claude/settings.json contains "skipDangerousModePermissionPrompt": true
  • No gcloud run deploy rule exists in any settings file:
  • ~/.claude/settings.json — not found
  • .claude/settings.json — not found
  • .claude/settings.local.json — not found
  • Project-level settings — not found

Steps to Reproduce

  1. Launch Claude Code with --dangerously-skip-permissions
  2. Ask Claude to run gcloud run deploy <service> --image=<image> --region=<region> --project=<project>
  3. Permission confirmation prompt appears despite the flag

Expected Behavior

--dangerously-skip-permissions should bypass all permission prompts, including for gcloud run deploy commands.

Actual Behavior

A confirmation prompt appears: "Permission rule Bash(gcloud run deploy:*) requires confirmation for this command."

Notes

  • This rule does not exist in any user, project, or local settings file
  • Possibly related to #1498 and #25503
  • May have been introduced in a recent version update (was not occurring previously)

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗