github / github/copilot-cli

System prompt contains incorrect instructions

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

描述

### Describe the bug

The system prompt contains instructions such as

> You can install Linux, Python, JavaScript and Go packages with the `apt`, `pip`, `npm` and `go` commands.

> You can run Python, Node.js and Go code with `python`, `node` and `go`

This instruction causes to cli to e.g. use python in certain scenarios while it is actually not available. These instructions are infrastructure/host depended and might be true for the github cloud environment but not for locally hosted or self hosted systems.

It should be possible to override the system prompt or such instructions should be removed.

### Affected version

_No response_

### Steps to reproduce the behavior

1. have a system without python installed
2. Instruct the agent to edit a yaml file
3. In many cases the agent will try to validate the yaml using python while it is not available.

### Expected behavior

System prompt doesn't contain incorrect or misleading instructions to prevent copilot doing things that are not possible.

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

Start by locating the system prompt text that asserts apt, pip, npm, go, python, node, and Go are available, then reproduce the YAML-editing scenario on a host without Python. Done means the prompt no longer makes host-dependent availability claims, or provides the requested way to override them; the issue does not name a file or test to run.

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

評估

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

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

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