github / github/copilot-cli

Feature request: reload .github/instructions mid-session (long-running sessions never pick up instruction updates)

Offen
#4,508 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:context-memory
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Observed behavior

Custom instructions (.github/instructions/*.instructions.md) are loaded once at session start. A long-running session — kept alive across many compactions over days — never sees any later edits to those files. We measured a session that crossed 200+ compaction boundaries over ~2.5 weeks: the instruction content it held stayed at its boot-time version the whole way, while the on-disk files moved dozens of revisions ahead. Compaction/summarization does not re-read the instruction files, so there is currently no way for updated standing instructions to reach an in-flight session at all.

Why it matters

For anyone using instruction files as living, standing guidance (conventions, safety rules, project state), the effective delivery is boot-only. The longer and more productive a session, the staler its standing instructions — the sessions you care most about are the ones guaranteed to be furthest behind. Restarting the session works but discards its accumulated context, which is exactly what long-running sessions exist to keep.

Ask

Any one of these would resolve it:

  1. An explicit reload command/verb (e.g. /reload-instructions) that re-reads the instruction files into the live session, or
  2. Automatic re-read of instruction files at each compaction boundary (a natural moment, since context is being rebuilt anyway), or
  3. A documented statement that instructions are boot-only, so users can design around it deliberately (e.g., scheduled restarts).
Environment

Copilot CLI on Windows, long-lived sessions resumed across days, instruction files under .github/instructions/ in the working directory.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, eine lang laufende Copilot CLI-Sitzung mit Dateien unter .github/instructions/*.instructions.md zu reproduzieren, und vergleiche anschließend den Inhalt der Anweisungen vor und nach der Kompaktierung. Verfolge das anfängliche Laden der Anweisungen sowie das Verhalten bei Kompaktierung/Zusammenfassung; als abgeschlossen gilt die Aufgabe, wenn aktualisierte Anweisungen die laufende Sitzung erreichen oder das Verhalten, bei dem sie nur beim Start geladen werden, eindeutig dokumentiert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github, shell
Bereich
cli, developer-experience
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

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