'No copilot-instructions.md found' notice is misleading when global config exists
還沒有人認領這個 Issue。
評估
研究方向
首先定位輸出「找不到 copilot-instructions.md」通知的 Copilot CLI 程式碼,並檢視它如何偵測 repository 外部的全域檔案 ~/.copilot/copilot-instructions.md。更新通知,使其能區分缺少 repository 層級檔案的情況,然後使用 issue 中的重現步驟驗證行為。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
When opening the Copilot CLI outside of a git repository, the notice No copilot-instructions.md found. Run /init to generate. is misleading. it implies no instructions file was found at all, even when a global ~/.copilot/copilot-instructions.md exists and is being used.
Affected version
GitHub Copilot CLI 1.0.49.
Steps to reproduce the behavior
- Create a global instructions file at
~/.copilot/copilot-instructions.md - Open Copilot CLI from a directory that is not a git repository
- Observe the notice:
No copilot-instructions.md found. Run /init to generate.
Expected behavior
- Create a global instructions file at
~/.copilot/copilot-instructions.md - Open Copilot CLI from a directory that is not a git repository
- Observe the notice:
No repository-level copilot-instructions.md found. Run /init to generate.
Additional context
No response
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/copilot-cli 的其他 Issue
-
triage
難度 2/5 1-3 小時 新手友好度 75/100
github/copilot-cli#4932 ·
-
triage
難度 2/5 1-3 小時 新手友好度 78/100
github/copilot-cli#4909 ·
-
triage
難度 2/5 1-3 小時 新手友好度 76/100
github/copilot-cli#4906 ·
-
triage
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4729 ·
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
good-start
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 75/100
VilnaCRM-Org/user-service#497 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
conda-forge/spacy-feedstock#177 ·
-
area:jail bug security severity:low track:open-source
難度 1/5 1 小時以內 新手友好度 75/100