Agent's follow up changes reverts the previous changes and causes endless loop

Abierto
#402 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
swift
Área
ai, desktop-dev

Línea de trabajo

Comienza revisando el archivo adjunto github-copilot-for-xcode.log y reproduciendo el problema en Agent mode en un único archivo usando las versiones indicadas de Copilot for Xcode, Xcode y macOS. Rastrea cómo se aplican las ediciones sucesivas; se considera terminado cuando los cambios anteriores se conservan al realizar cambios posteriores y el agente deja de entrar en un bucle de corrección infinito.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug
When using agent mode, if the agent needs to make changes in steps, the first set of changes gets reverted by the second set of changes, which causes the agent to attempt to fix it by redoing the first changes, which reverts the second set of changes, and it gets into an endless loop of trying to fix this.

Versions

  • Copilot for Xcode: 0.40.0
  • Xcode: 16.4
  • macOS: 15.5

Steps to reproduce

  1. Use agent mode to request changes to a single file. The agent needs to make changes in multiple steps. For example, adding a property first, then changing a function to use that property.
  2. Observe the agent making the first change successfully.
  3. When the agent then makes the second change, it reverts the first change when applying the second.
  4. The agent then realizes the first change isn't there, and so it decides to fix this.
  5. When re-applying the first change, it ends up reverting the second change.
  6. The agent then realizes this too, and attempts to fix it, which puts it into an endless loop.

Screenshots

Logs
github-copilot-for-xcode.log

Additional context

Lenguaje dominante
Swift
Estrellas
6.3k
Forks
2k
Merge medio
3 d 21 h
PR fusionados (30 d)
2

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/CopilotForXcode

Todos los issues de github/CopilotForXcode

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.