github / github/copilot-cli

'No copilot-instructions.md found' notice is misleading when global config exists

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

描述

### 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

1. Create a global instructions file at `~/.copilot/copilot-instructions.md`
2. Open Copilot CLI from a directory that is not a git repository
3. Observe the notice: `No copilot-instructions.md found. Run /init to generate.`

### Expected behavior

1. Create a global instructions file at `~/.copilot/copilot-instructions.md`
2. Open Copilot CLI from a directory that is not a git repository
3. Observe the notice: `No repository-level copilot-instructions.md found. Run /init to generate.`

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

Start by locating the Copilot CLI code that emits the “No copilot-instructions.md found” notice and review how it detects the global ~/.copilot/copilot-instructions.md file outside a repository. Update the notice to distinguish a missing repository-level file, then verify the behavior using the reproduction steps in the issue.

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

評估

技術堆疊
shell
領域
cli
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
冷清
描述清晰度
描述清楚
新手友好度
68/100

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

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