Skip to content

Bash commands auto-approved despite not being in allowedTools #25181

Description

@ibash

Summary

Bash tool calls are executing without user approval prompts despite no Bash permission being granted in any configuration file.

Configuration

.claude/settings.local.json (project-level):

{
  "permissions": {
    "allow": [
      "WebSearch",
      "WebFetch(domain:rustic.cli.rs)",
      "WebFetch(domain:github.com)",
      "WebFetch(domain:docs.bluebubbles.app)"
    ]
  }
}

~/.claude.json project entry: "allowedTools": []

~/.claude/settings.json: No permissions block at all.

Expected behavior

Bash commands should require user approval since Bash is not in any allow list.

Actual behavior

Bash commands (e.g. du -sh, df -h, echo "test") execute immediately with no approval prompt.

Environment

  • macOS (Darwin 24.6.0)
  • Claude Code CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions