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)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github, node.js, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Add a marketplace and install a plugin whose
hooks.jsondeclares asessionStarthook (addsadditionalContext) and aStophook (writes a file or makes a commit). - Open a trusted folder and run
copilot -p "hello"withCOPILOT_AUTO_UPDATE=false. - 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.
- Ngôn ngữ chính
- Python
- Star
- 11.5k
- Fork
- 2k
- Merge trung bình
- 6 giờ 34 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/copilot-cli
-
area:plugins
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/copilot-cli#5567 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationĐang mởarea:tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#5476 ·
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
github/copilot-cli#5340 ·
Tất cả issue của github/copilot-cli
Issue tương tự
-
fidelity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sagemathinc/sagebrush#3434 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wuisabel-gif/MemWhale#576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Status: Triage Suggestion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Maintainer thường phản hồi trong vòng 1 ngày