github / github/CopilotForXcode

Copilot wrote codes to wrong files in Agent mode

Abierto
#453 11 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Swift
Estrellas
6.3k
Forks
2k
Merge medio
2 min
PR fusionados (30 d)
2

Descripción

**Describe the bug**

**Versions**
- Copilot for Xcode: 0.41.0
- Xcode: 26.0 beta 5 (17A5295f)
- macOS: 26.0 Beta (25A5338b)

**Steps to reproduce**
When using Agent mode to fix bugs, sometimes Copilot will write code to the wrong file and make content duplicated.

For example, with a SPM project, Copilot wrote codes of Package.swift to swift file in sources. And it could not found this was bug until I pointed out.

It also happened with normal .xcodeproj project between .swift files.

When this happens, the whole file content will be replaced. You will lost one file and have two duplicated files.

Can you investigate and fix it?

**Screenshots**

**Logs**

**Additional context**

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.