argument-hint doesn't show for skills
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- cli
Hướng nghiên cứu
Bắt đầu từ cliSlashSkillMetadata, bước chuyển đổi skill thành lệnh được nêu trong báo cáo: hàm này nhận đúng argumentHint nhưng trả về metadata của lệnh không có trường args. So sánh cách các lệnh tích hợp như /model điền args để gợi ý được hiển thị, sau đó đặt argumentHint của skill ở đó như một arg chuỗi cố định. Để kiểm tra, tạo .github/skills/hint-repro/SKILL.md như trong repro, khởi động phiên CLI trong dự án đó và gõ /hint-repro; xong khi [target] [--help] hiển thị trong gợi ý và dòng nhập, có hoặc không có khoảng trắng ở cuối.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
A skill's description appears when typing its slash command, but its argument hint doesn't. The installed SKILL.md has a quoted, top-level argument-hint field in its YAML frontmatter
Affected version
1.0.115-8
Steps to reproduce the behavior
- In a local test project, create
.github/skills/hint-repro/SKILL.mdwith this content:
---
name: hint-repro
description: Test whether skill argument hints are displayed.
argument-hint: "[target] [--help]"
---
If invoked, reply with "Hint test." Do not use tools.
- Start a fresh Copilot CLI session in that project
- Type
/hint-reprowithout pressing Enter. Check the command suggestion and input line for[target] [--help] - Add a trailing space and check again
The configured argument hint should be displayed. There is no need to submit the command or execute the skill
Expected behavior
The configured argument hint should appear when selecting or typing the skill's slash command, as described under “Skill frontmatter fields”:
Additional context
Reproduced on macOS ARM64
Built-in commands such as /model show their argument hints in the same terminal
While investigating, I found that cliSlashSkillMetadata receives the correct argumentHint, but the returned command metadata has no args field. In a temporary test process, adding this to the returned command made the full hint appear:
command.args = [{ type: "literal", text: skill.argumentHint }];
Removing that change made the hint disappear again
That seems to narrow it down to the skill-to-command conversion
I only tested the display behaviour, so the snippet above isn't intended as a complete fix
- Ngôn ngữ chính
- Python
- Star
- 11.5k
- Fork
- 2k
- Merge trung bình
- 6 giờ 34 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/copilot-cli
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationĐang mởarea:tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#5476 ·
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
github/copilot-cli#5340 ·
-
area:configuration area:models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
github/copilot-cli#5287 ·
Tất cả issue của github/copilot-cli
Issue tương tự
-
fidelity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sagemathinc/sagebrush#3434 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wuisabel-gif/MemWhale#576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Status: Triage Suggestion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Maintainer thường phản hồi trong vòng 1 ngày