Skip to content

(bug) Bash runs without approval when the tool policy is Ask #8329

Open

Description

@mmabrouk

🤖 The AI agent says:

What happens

The agent's tool policy is set to Ask. The agent runs a Bash command with no approval request. A Write tool call in the same agent does ask for approval.

Steps to reproduce

  1. Create an agent on the Claude Code harness. Any Claude model works. We used Claude Haiku through a Claude subscription.
  2. In the agent's permissions, set the policy to Ask.
  3. Ask the agent: "run echo approved-ok".
  4. The command runs, and the answer contains its output. No approval request appears.
  5. Ask the agent: "create a file note.txt with the content hi".
  6. An approval request appears for the Write call. This is the expected behavior.

We saw this during live QA of the Discord channel. The approval request for Write showed in Discord. Bash ran without one. It is not channel specific. The policy decides which tool calls need approval.

Expected

Under Ask, a Bash call asks for approval like a Write call does. If Bash is left out of Ask on purpose, the permissions screen must say so.

Activity

  1. linear-code commented on Nov 17, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions