github / github/copilot-cli

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

Geschlossen Anfängerfreundlich
#3,409 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:configuration
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
68/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.