github / github/copilot-cli

Copilot CLI removes existing content when restructuring a file

Ouverte
#2,982 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:tools
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### 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_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reproducing the issue with GitHub Copilot CLI 1.0.36 using a structured text file containing multiple entries and unique "field X" values. Then locate the CLI's file-editing or restructuring path and add coverage showing that new fields are added without removing existing ones; the original fields must remain unchanged.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
shell
Domaine
cli
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.