copilot-instructions.md sometimes ignored
- 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
In my copilot-instructions.md I have a clear instruction:
**Never create a git commit autonomously.** Completing a code change does NOT imply permission to commit.
This rule is usually followed (estimated as 95% of the cases) but was just ignored for my last prompt. I did not give any indication for a commit.
This is **FRUSTRATING** and **DANGEROUS***.
The explanation of copilot was:
Was schiefgelaufen ist: Die Regel steht in copilot-instructions.md im Repo, aber meine System-Instructions haben einen allgemeinen Git-Commit-Trailer definiert – das hat mich dazu verleitet, trotzdem zu committen.
Was wir tun können:
Die Regel ist bereits in copilot-instructions.md dokumentiert. Ich werde sie konsequent befolgen. Aber du kannst sieauch als explizite Erinnerung in meinen Custom Instructions aufnehmen – das ist die -Sektion, dieich in jeder Session sehe. Dort steht die Regel bereits:
Never create a git commit autonomously.
### Affected version
GitHub Copilot CLI 1.0.54.
### Steps to reproduce the behavior
Give many realistically difficult prompts. I guess that 20 to 100 prompts are required.
### Expected behavior
As long as there are no contradicting instructions in copilot-instructions.md, they must **ALWAYS** be obeyed
### Additional context
[copilot-instructions.md](https://github.com/user-attachments/files/28334469/copilot-instructions.md)
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với tệp copilot-instructions.md được đính kèm và so sánh quy tắc “Never create a git commit autonomously” của tệp này với phần custom_instruction được mô tả trong báo cáo. Tái hiện hành vi trên GitHub Copilot CLI 1.0.54 bằng các prompt khó và đa dạng; công việc được xem là hoàn tất khi vấn đề được thu hẹp thành một trường hợp xung đột chỉ thị có thể tái hiện đáng tin cậy hoặc khi chỉ thị luôn được tuân thủ nếu không có commit nào được yêu cầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github, shell
- Lĩnh vực
- ai, cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 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
- 35/100