Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Agent Skills allowed-tools frontmatter specs not respected in non-interactive mode #3699

Copy link
Copy link
@joellis13

Description

@joellis13
Issue body actions

Describe the bug

GIVEN any generic skill like:

---
name: greet-user
description: use when a user offers a greeting
allowed-tools:
  - bash
  - shell
  - powershell
  - any-other-tool
---

Run the `./scripts/greet.sh`
<!-- (or `./scripts/greet.py`, `./scripts/greet.bat`, `./scripts/greet.ps1`, etc.) -->

WHEN I prompt with "hello" in interactive mode in Copilot
THEN It works as expected and the script runs, but
WHEN I prompt with "hello" in NON-interactive mode (e.g. copilot -p "hello")
THEN I get a ton of Permission denied and could not request permission from user
AND A ton of wasted tokens, time, and money

Affected version

1.0.60

Steps to reproduce the behavior

All in the above description.

Expected behavior

If a tool is marked as allowed, IT SHOULD BE ALLOWED.

Additional context

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:non-interactiveNon-interactive mode (-p), CI/CD, ACP protocol, and headless automationNon-interactive mode (-p), CI/CD, ACP protocol, and headless automationarea:permissionsTool approval, security boundaries, sandbox mode, and directory restrictionsTool approval, security boundaries, sandbox mode, and directory restrictionsarea:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agentsPlugin system, marketplace, hooks, skills, extensions, and custom agents

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.