github / github/copilot-cli

Copilot CLI removes existing content when restructuring a file

Abierto
#2,982 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area:tools
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### Describe the bug

When asked to add new sections, to an existing structured text file, Copilot replaced the original sections entirely instead of preserving them and appending the new sections alongside. I had to explicitly ask copilot cli to restore the deleted sections. It was able to restore them, thankfully.

### Affected version

GitHub Copilot CLI 1.0.36

### Steps to reproduce the behavior

1. Create a structured text file with multiple entries, each containing a "field X" field with unique content.
2. Ask Copilot CLI to "edit the file to include field a, field b and field c."
3. Review the resulting file for the original "field X" fields.

### Expected behavior

Copilot should add the new sections alongside the existing field in each entry. Th eoriginal fields should remain untouched.

### Additional context

_No response_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.