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)

オープン
#5,621 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, node.js, typescript
領域
backend, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
11.5k
フォーク
2k
平均マージ
6時間 34分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/copilot-cli のほかの issue

github/copilot-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。