github / github/copilot-cli

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

Đang mở
#4,494 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

area:configuration area:models
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện quy trình khả dụng của mô hình trong CLI và Visual Studio sau khi bật một mô hình, sử dụng các vị trí trạng thái được báo cáo %LOCALAPPDATA%\copilot và %USERPROFILE%.copilot\config.json cùng các lệnh /logout /login. So sánh hành vi trước và sau khi đổi tên thủ công các tệp đó; hoàn tất khi danh mục mô hình được làm mới sau khi khởi động lại hoặc xác thực lại mà không cần xóa trạng thái thủ công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github
Lĩnh vực
authentication, cli, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.