Newly enabled model remains unavailable until local Copilot state/cache/login is cleared
Personne n'a encore pris cette issue.
- 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
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
- Enable a previously unavailable model in Copilot settings.
- Restart/re-authenticate CLI and Visual Studio.
- Model remains unavailable.
- Close Copilot and VS
- Rename %LOCALAPPDATA%\copilot to something like copilot-backup.
- Rename %USERPROFILE%.copilot\config.json to config.json.backup.
- Start Copilot CLO, /logout /login
- 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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire le flux de disponibilité du modèle dans CLI et Visual Studio après avoir activé un modèle, en utilisant les emplacements d’état signalés %LOCALAPPDATA%\copilot et %USERPROFILE%.copilot\config.json ainsi que les commandes /logout /login. Comparez le comportement avant et après avoir renommé manuellement ces fichiers ; c’est terminé lorsque le catalogue de modèles s’actualise après un redémarrage ou une nouvelle authentification sans suppression manuelle de l’état.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- github
- Domaine
- authentication, cli, tooling
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- À clarifier
- Accessibilité débutants
- 38/100