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

未關閉
#5,589 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python
領域
cli

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Python
星號
11.5k
分支
2k
平均合併
6 小時 34 分鐘
30 天內合併 PR
3

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。