Skip to content

[BUG] Plan agent requests permission for piped commands despite allowed settings (regression of #1271) #11775

@PaulRBerg

Description

@PaulRBerg

What's Wrong?

The Plan agent keeps requesting permission for piped commands even when both commands are explicitly listed in the allowed permissions in settings.json.

For example, when the Plan agent tries to run:

ls -lh /Users/prb/sablier/frontend/ui/apps/landing/public/blog/*.webp | awk '{print $5, $9}'

I get a permission prompt asking me to approve the command, despite having both ls and awk already configured in my allowed permissions.

Image

What Should Happen?

When both ls and awk are in the allowed permissions list, the Plan agent should execute piped commands like ls | awk without requesting permission. This is a regression of the fix from issue #1271.

Steps to Reproduce

  1. Add both ls and awk to allowed permissions in settings.json
  2. Start a Plan agent session
  3. Ask the agent to analyze files using a piped command (e.g., listing files with sizes)
  4. Agent attempts to run a command like ls -lh path/*.webp | awk '{print $5, $9}'
  5. Permission prompt appears despite both commands being whitelisted

Is this a regression?

Yes, this worked in a previous version. This issue was previously fixed in #1271 but has regressed, specifically in the context of the Plan agent.

Related Issues

Note

This bug appears to be specific to the Plan agent context. The regression may be related to how the Plan agent processes tool permissions differently from the main agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions