github / github/copilot-cli

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

オープン
#3,699 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:non-interactive area:permissions area:plugins
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the bug

**GIVEN** any generic skill like:
```markdown
---
name: greet-user
description: use when a user offers a greeting
allowed-tools:
- bash
- shell
- powershell
- any-other-tool
---

Run the `./scripts/greet.sh`

```

**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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。