github / github/copilot-cli

Custom instructions leak into repository analysis

未關閉
#3,946 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration area:context-memory
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

Whenever I ask copilot to analyze a repository and e.g. create an instruction file it seems that it is leaking local instructions into the context and taking them for facts for this particular repository.

This then can lead of general part in the instructions, e.g. I have

```
### Markdown

- Start each sentence on a new line to improve diff readability.
- Format tables with aligned spaces so they are readable as plain text.
```

that now suddenly is in-cooperated whenever I use e.g. `/init` or asking for an `AGENTS.md` file or enhance/create an inital readme for the project.

### Affected version

_No response_

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

首先使用 /init 或 AGENTS.md 產生請求重現該行為,並將產生的儲存庫指示與報告中描述的本機自訂指示進行比較。當通用的本機 Markdown 指導不再被納入為儲存庫特定事實時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。