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