CLI repeatedly ignores commit instruction, tool rejections and reminders to check its rules
还没有人认领这个 Issue。
评估
调研方向
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 内容生成。
描述
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
- The user had explicitly instructed the assistant not to add
Co-authored-bytrailers to commits, then asked it to commit work in a continued session after history had been summarized. - The assistant proposed staging and committing with the prohibited trailer. The user rejected the command.
- 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.
- 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.
- 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.
- 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot-cli 的其他 Issue
-
area:plugins
难度 2/5 1-3 小时 新手友好度 75/100
github/copilot-cli#5567 ·
-
难度 1/5 1-3 小时 新手友好度 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncation未关闭area:tools
难度 2/5 1-3 小时 新手友好度 72/100
github/copilot-cli#5476 ·
-
triage
难度 1/5 1 小时以内 新手友好度 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
难度 1/5 1 小时以内 新手友好度 74/100
github/copilot-cli#5340 ·
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
marketing
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
Status: Triage Suggestion
难度 2/5 1-3 小时 新手友好度 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
collabnix/awesome-mcp-lists#515 ·
维护者通常 1 天内回复
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickie未关闭
难度 2/5 1-3 小时 新手友好度 78/100
-
documentation good first issue
难度 1/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复