github / github/copilot-cli

Newly enabled model remains unavailable until local Copilot state/cache/login is cleared

Abierto
#4,494 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

area:configuration area:models
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

Newly enabled Copilot models can remain unavailable because the local model catalog does not refresh. Sonnet 5 was enabled in GitHub settings but unavailable in CLI and Visual Studio until local Copilot state/cache was manually reset. This seems to also affect the model list in the Visual Studio copilot extension. It was never a problem with Visual studio before I installed CLI and wasn't an issue for my coworkers who haven't used the CLI.

Note: I did both renames and re-login in the repro, I didn't check the model list in-between, so I'm unclear on what specifically fixed it and I don't have the admin rights to keep testing this by enabling models.

Affected version

1.0.80, also affected Visual Studio Insiders 12106.202

Steps to reproduce the behavior
  1. Enable a previously unavailable model in Copilot settings.
  2. Restart/re-authenticate CLI and Visual Studio.
  3. Model remains unavailable.
  4. Close Copilot and VS
  5. Rename %LOCALAPPDATA%\copilot to something like copilot-backup.
  6. Rename %USERPROFILE%.copilot\config.json to config.json.backup.
  7. Start Copilot CLO, /logout /login
  8. Model becomes available in CLI and Visual Studio.
Expected behavior

I assume model availability should refresh on restart at least. I don't see any documentation for manually updating the model list, so I assume it isn't something the user is supposed to worry about.

Additional context

No response

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.

Línea de trabajo

Comienza reproduciendo el flujo de disponibilidad del modelo en CLI y Visual Studio después de habilitar un modelo, utilizando las ubicaciones de estado indicadas %LOCALAPPDATA%\copilot y %USERPROFILE%.copilot\config.json y los comandos /logout /login. Compara el comportamiento antes y después de cambiar manualmente el nombre de esos archivos; se considera terminado cuando el catálogo de modelos se actualiza después de reiniciar o volver a autenticarse sin eliminar manualmente el estado.

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

Evaluación

Stack tecnológico
github
Área
authentication, cli, tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Necesita aclaración
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.