Skip to content

[ENHANCEMENT] Custom command denied rejection prompts (or at least one) #8703

@lee-b

Description

@lee-b

Problem (one or two sentences)

The default command execution denial prompt is too generic. I'd like to be able to customise this, ideally per command.

Context (who is affected and when)

When a command like 'python' is denied by the user, roo-code sends the LLM messages like this:

"Commands with the prefix python have been forbidden by the user. Do not bypass this restriction by running another command."

The "Do not bypass this restriction by running another command." is too strong, however, and probably discourages the LLM from doing the right thing, rather than guiding it toward doing the right thing.

In this case I would want the LLM to run "uv run python", rather than the system-wide python. So a custom prompt for this denial, that tells it do favor uv would be very welcome.

Desired behavior (conceptual, not technical)

Ideally, each denied command could have a string telling the LLM what to do instead.

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions