Better error messages for tools access

Resolved 💬 3 comments Opened Jul 6, 2025 by andig Closed Dec 30, 2025

Reported in https://github.com/anthropics/claude-code-base-action/issues/68#issuecomment-3022794779, Claude complains about not being able to use Bash, however the actual issue is:

It looks like you're only allowing Bash(gh label list) so that's why Bash(gh issue view:*) wouldn't work
{
  "type": "user",
  "message": {
    "role": "user",
    "content": [
      {
        "type": "tool_result",
        "content": "Claude requested permissions to use Bash, but you haven't granted it yet.",
        "is_error": true,
        "tool_use_id": "toolu_01BxziWmfYPrxXb7PoAWG7DC"
      }
    ]
  },
  "parent_tool_use_id": "toolu_01BBatH17ZBPHayqp62x4e3L",
  "session_id": "8fefc3e3-8bc9-4037-9b71-65c80856c510"
}

Clearer error message would help here, mentioning the Bash command too.

View original on GitHub ↗

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