github / github/copilot-cli

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

Offen
#4,494 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:configuration area:models
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, den Ablauf der Modellverfügbarkeit in CLI und Visual Studio nach der Aktivierung eines Modells zu reproduzieren, unter Verwendung der gemeldeten Zustandsorte %LOCALAPPDATA%\copilot und %USERPROFILE%.copilot\config.json sowie der Befehle /logout /login. Vergleiche das Verhalten vor und nach dem manuellen Umbenennen dieser Dateien; als abgeschlossen gilt die Aufgabe, wenn der Modellkatalog nach einem Neustart oder einer erneuten Authentifizierung ohne manuelles Entfernen des Zustands aktualisiert wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github
Bereich
authentication, cli, tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.