'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