CLI repeatedly ignores commit instruction, tool rejections and reminders to check its rules

Đang mở
#5,589 1 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
Lỗi
Độ 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 report identifies Copilot CLI behavior in version 1.0.114 but does not name a source file or test. Start by tracing how the CLI retrieves prior instructions and session history after a rejection, then look for tests covering that flow. Done means the assistant honors an explicit commit instruction and checks available instructions and history after reminders, without repeating rejected commands.

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

Mô tả

area:context-memory
Describe the bug

Copilot CLI repeatedly proposed adding a Co-authored-by trailer despite the user explicitly instructing it not to. Even after the user rejected commands and repeatedly told it to check its rules, the assistant failed to find and apply the instruction until after a third rejection.

Affected version

1.0.114

Steps to reproduce / observed sequence
  1. The user had explicitly instructed the assistant not to add Co-authored-by trailers to commits, then asked it to commit work in a continued session after history had been summarized.
  2. The assistant proposed staging and committing with the prohibited trailer. The user rejected the command.
  3. The assistant guessed that the problem was the length of the staging command and retried a shorter command with the same trailer. The user rejected it and reminded the assistant to check its rules.
  4. Rather than finding the instruction, the assistant asked the user to identify the rule. The user told it to read the rules and figure it out.
  5. The assistant searched repository instruction files, attempted a history search that did not return the relevant local result, and then guessed that the problem was the combined shell command. It staged the changes and again proposed a commit with the trailer. The user rejected it a third time.
  6. Only then did the assistant search local session history successfully, find the explicit prior instruction, and commit without the trailer.
Expected behavior

The assistant should honor the explicit instruction when preparing the commit. After a rejection and reminders to check its rules, it should review relevant available instructions and conversation history, rather than repeatedly guessing or asking the user to restate them.

Additional context

Observed on macOS. The prior instruction was available in local session history, and a successful search resolved the issue. This report describes one observed session; reproducibility under other session and memory configurations has not been established.

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.