copilot-instructions.md sometimes ignored
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
### 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)
贡献指南
调研方向
从随附的 copilot-instructions.md 开始,将其中的“Never create a git commit autonomously”规则与报告中描述的 custom_instruction 部分进行比较。使用各种困难的提示在 GitHub Copilot CLI 1.0.54 上复现该行为;当问题被缩小为一个可靠的指令冲突案例,或在未请求 commit 时该指令始终得到遵守,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, shell
- 领域
- ai, cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100