claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Subagents fail on permission checks without prompting user

Open joaopixar opened this issue 10 months ago • 1 comments

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:

  1. The user should be prompted to approve/deny the command interactively, OR
  2. 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

  1. Use the Skill tool to invoke plugin-dev:command-development
  2. The skill's subagent attempts to run a bash command (e.g., gh pr view)
  3. 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

joaopixar avatar Jan 05 '26 21:01 joaopixar

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/15138
  2. https://github.com/anthropics/claude-code/issues/11934
  3. 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

github-actions[bot] avatar Jan 05 '26 22:01 github-actions[bot]

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

github-actions[bot] avatar Jan 09 '26 09:01 github-actions[bot]

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.

github-actions[bot] avatar Jan 18 '26 14:01 github-actions[bot]