[BUG] Subagents fail on permission checks without prompting user
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When a subagent (launched via Task tool) attempts to execute a bash command requiring permission, it fails silently with an error instead of prompting the user for approval. The user never gets a chance to allow or deny the command.
This occurred when invoking the plugin-dev:command-development skill, which attempted to run a bash command that wasn't pre-approved.
What Should Happen?
Either:
- The user should be prompted to approve/deny the command interactively, OR
- The error message should explain what command needs approval and how to grant it in settings.json
Error Messages/Logs
● /plugin-dev:command-development
⎿ Error: Bash command permission check failed for pattern "!`gh pr view $1`": This command requires approval
Steps to Reproduce
- Use the Skill tool to invoke plugin-dev:command-development
- The skill's subagent attempts to run a bash command (e.g., gh pr view)
- Observe error without any permission prompt shown to user
Claude Model
Sonnet 4.5 or Opus 4.5
Claude Code Version
2.0.76
Platform
AWS Bedrock
Operating System
Other Linux
Terminal/Shell
VS Code integrated terminal
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/15138
- https://github.com/anthropics/claude-code/issues/11934
- https://github.com/anthropics/claude-code/issues/9383
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and thumbs up the existing issue instead
- To prevent auto-closure, add a comment or thumbs down this comment
Generated with Claude Code
This issue has been automatically closed as a duplicate of #15138.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.