Skip to content

[BUG] [CRITICAL] Auto Approve: Denied commands did not work #12292

@PlanBernhard

Description

@PlanBernhard

Problem (one or two sentences)

The agent ignores the denied command rm, he bypasses it with such code:

cat > verify-hook-install.nu << 'HEREDOC'
use scripts/development/modules/nu/install_hooks.nu [install-git-hooks]
let project_root = ($env | get -o FILE_PWD | default (pwd))
install-git-hooks $project_root
HEREDOC
nu verify-hook-install.nu && rm verify-hook-install.nu

Context (who is affected and when)

Everyone

Reproduction steps

  1. Open Settings -> Auto Approve
  2. Write inside "Denied Commands" the word "rm" -> Add
  3. Press "Save"
  4. Now the agent is still be able to use rm without approval

Expected result

Asking for approval

Actual result

The agent could execute the code without approval

Variations tried (optional)

No response

App Version

Version: 3.53.0 (44f6bba)

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions