github / github/copilot-cli

CLI violates instructions by ignoring mandatory Microsoft cpp language server (LSP) usage

未關閉
#3,516 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration area:tools
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

Copilot CLI used grep/glob/raw search even though:

LSP was available
LSP would clearly have been sufficient

The model did not check for LSP availability
The model acknowledged the rule but still violated it.

[lsp_diagnostic_log_2026-05-25_16-06-45.zip](https://github.com/user-attachments/files/28224349/lsp_diagnostic_log_2026-05-25_16-06-45.zip)

Note 1: I'm using the cpp language server (https://github.com/microsoft/cpp-language-server).
Note 2: I've tried with many models (GPT-5 mini, Claude Sonnet 4.6, Claude Opus 4.6), but the output was always the same
### Affected version

GitHub Copilot CLI 1.0.54.

### Steps to reproduce the behavior

[lsp_diagnostic_log_2026-05-25_16-06-45.txt](https://github.com/user-attachments/files/28224382/lsp_diagnostic_log_2026-05-25_16-06-45.txt)

### Expected behavior

Follow instructions from \.github\instructions.md

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

檢視 .github/instructions.md 和附加的診斷記錄,然後使用 Copilot CLI 1.0.54 和 Microsoft cpp language server 重現該行為。當 LSP 可用且足夠時,CLI 遵循所述的 LSP 使用指示,即視為完成;該 issue 未指定實作檔案或測試。

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

評估

技術堆疊
cpp
領域
cli, developer-experience
Issue 類型
缺陷
難度
5/5
預估耗時
一週以上
活躍度
冷清
描述清晰度
需要釐清
新手友好度
32/100

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

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