Newly enabled model remains unavailable until local Copilot state/cache/login is cleared
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、モデルを有効にした後の CLI と Visual Studio におけるモデル利用可能性のフローを、報告されている状態の保存場所 %LOCALAPPDATA%\copilot および %USERPROFILE%.copilot\config.json と、/logout /login コマンドを使用して再現します。これらのファイルの名前を手動で変更する前後の動作を比較します。再起動または再認証後に、状態を手動で削除しなくてもモデルカタログが更新されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github
- 領域
- authentication, cli, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 38/100