Agent Skills `allowed-tools` frontmatter specs not respected in non-interactive mode
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
### 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_
Hướng dẫn đóng góp
Hướng nghiên cứu
Reproduce the behavior with a generic skill using the shown allowed-tools frontmatter and the non-interactive `copilot -p "hello"` entry point, comparing it with interactive mode. Done means allowed tools such as `bash`, `shell`, or `powershell` run without permission-denied errors or repeated retries in non-interactive mode.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- authorization, cli
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 54/100