Plugin hooks no longer run on Windows since 1.0.114 (still broken in 1.0.115 and 1.0.117; 1.0.112 works)

Offen
#5,621 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github, node.js, typescript
Bereich
backend, cli

Rechercherichtung

Start by tracing plugin hook execution and managed plugin maintenance for non-interactive Windows sessions; the report provides no source file or test names, so first locate the code that emits the two logged warnings. Reproduce with a marketplace plugin on Windows using copilot -p "hello" and compare behavior with 1.0.112. Done means marketplace hooks run in the affected versions, with a regression test covering the failing session flow.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:plugins

Describe the bug

Hooks shipped with a plugin installed from a marketplace (sessionStart, preToolUse, Stop) stopped running after the CLI auto-updated from 1.0.112 to 1.0.114. Same folder, same plugin, same prompt:

Version Plugin hooks
1.0.112 run (sessionStart context reaches the model, preToolUse blocks, Stop runs at the end of each prompt)
1.0.114 none run
1.0.115 none run
1.0.117 none run

To reproduce

  1. Add a marketplace and install a plugin whose hooks.json declares a sessionStart hook (adds additionalContext) and a Stop hook (writes a file or makes a commit).
  2. Open a trusted folder and run copilot -p "hello" with COPILOT_AUTO_UPDATE=false.
  3. With 1.0.112 the hooks run. With 1.0.114, 1.0.115 or 1.0.117 none of them run, and nothing is reported in the session.

Logs (~/.copilot/logs/, 1.0.117)

[WARNING] [rust:copilot_runtime::session::api_session_options_update] Failed to reload managed hooks after enabling managed settings {"error":"no hook session for session id <id>"}
[WARNING] [rust:standalone_host::standalone::managed_plugins::maintenance] Plugin maintenance failed {"error":"The session context changed before the plugin operation"}

1.0.114 also logged "Managed settings have not been resolved".

Environment

  • Windows 11, x64; CLI from npm (@github/copilot) and the standalone binary
  • Non-interactive mode (copilot -p); interactive not checked
  • Folder path length is not the cause (tested short and long paths)

Expected behavior

Plugin hooks run as in 1.0.112.

Vorherrschende Sprache
Python
Sterne
11.5k
Forks
2k
Ø Merge
6 Std. 34 Min.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-cli

Alle Issues in github/copilot-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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