github / github/copilot-cli

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

未关闭
#4,494 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

area:configuration area:models
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
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
  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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在启用模型后,使用报告的状态位置 %LOCALAPPDATA%\copilot 和 %USERPROFILE%.copilot\config.json 以及 /logout /login 命令,复现 CLI 和 Visual Studio 中的模型可用性流程。比较手动重命名这些文件前后的行为;完成标准是重启或重新进行身份验证后,无需手动删除状态,模型目录即可刷新。

由索引模型根据 Issue 内容生成。

评估

技术栈
github
领域
authentication, cli, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。