[BUG] Bash Permissions Not Working in Slash Command
Resolved 💬 6 comments Opened Jul 22, 2025 by JamesonNyp Closed Aug 19, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 1.0.57
- Operating System: Ubuntu 24.04 LTS
- Terminal: Terminal
Bug Description
When running slash commands in v1.0.57, any slash command that has bash commands listed within it, errors out before reading all of the logic. The yaml frontmatter doesn't seem to effect it, and even giving full bash permissions in the settings.json doesn't allow it to move forward. Also it doesn't prompt the user to allow bash access permissions.
Steps to Reproduce
- Run claude code
- Run any slash command that uses bash in the process
Expected Behavior
Claude reads the slash command and runs the bash command and then continues with the command logic.
Actual Behavior
Get the following error even if all bash permissions are allowed.
Error: Bash command permission check failed for pattern "!`git status --short | grep -E "^M|^MM|\?\?" | head -10`": Claude requested permissions to use Bash, but you haven't granted it yet.
Additional Context
Confirmed it worked as intended on v1.0.54.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗