settings/hooks changes require a full CLI restart with no notice or hot-reload signal

Đang mở
#5,595 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

The issue identifies settings.json and the live interactive CLI session, but names no source files or tests. Start by tracing where settings are loaded at startup and how the CLI handles settings changes; compare the watcher and restart notice options described here. Done means settings changes are detected live or users receive a clear notice that they require a restart.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:configuration area:plugins

Build: 1.0.115, both packaging forms.

Repro:

  1. With a live interactive CLI session, add a hooks entry (e.g. a Notification hook script) to settings.json.
  2. Trigger events that should fire the hook (background task completion, notifications).

Actual: the hook never fires for the running process (hooks are read at startup only). Verified x3 on one machine, x1 on a second: the same config change works in the next session but is silently inert in the live one. Same class for other settings (e.g. removing dead AHP connections does not stop the refresh loop until restart — see U1).

Expected: either live re-read on file change (watcher), or a one-time notice in-session ("N settings changes will apply after restart"), so long-lived agents/sessions can detect why an event hook is inert. For automation-heavy users (hooks + notifications are the primary external integration surface), silent inertness causes hours of misdiagnosis.

Adjacent prior: #4508 (mid-session instruction reload FR).

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-cli

Tất cả issue của github/copilot-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.