Copilot Free in GitHub Codespaces: "No model available" after update, Auto selection, token isolation, and re-login
Chưa có ai nhận issue này.
- 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
GitHub Copilot CLI launches successfully in a GitHub Codespace, but every prompt immediately fails with:
Execution failed: Error: No model available. Check policy enablement under GitHub Settings > Copilot
The account is on GitHub Copilot Free. GitHub's documentation states that Copilot CLI is available with all Copilot plans and that Copilot Free users should use Auto model selection.
The problem still occurs after all of the following:
- Updating Copilot CLI with
copilot update - Selecting Auto with
/model auto - Launching the CLI without the Codespaces-provided authentication environment variables
- Signing out and signing in again with
/logoutand/login
The screenshot taken before the update also shows Remaining reqs.: 0%. If the actual cause is an exhausted Free-plan request allowance, the current error message is misleading because it reports a model/policy problem instead of a usage-limit condition.
Affected version
v1.0.78 after running copilot update (initially v1.0.3; the issue persists after updating)
Steps to reproduce the behavior
-
Open a GitHub Codespace.
-
Run
copilot update. -
Launch Copilot CLI without the Codespaces token variables:
env -u COPILOT_GITHUB_TOKEN -u GH_TOKEN -u GITHUB_TOKEN -u COPILOT_MODEL copilot -
Run
/logout, then/login, and authenticate again with the Copilot Free account. -
Run
/model auto. -
Enter a minimal prompt such as:
Reply with "hello". -
Observe the error:
Execution failed: Error: No model available. Check policy enablement under GitHub Settings > Copilot
The same failure occurs both with the normal Codespaces environment and with the token variables removed for the Copilot process.
Expected behavior
Copilot Free should either:
- Respond using Auto model selection, because Copilot CLI is documented as available with all Copilot plans; or
- If the Free-plan request allowance is exhausted, display a clear quota/usage-limit message.
It should not report that no model is available because of policy enablement when the user is on an individual Copilot Free plan and Auto is selected.
Additional context
Environment:
- GitHub Codespaces
- VS Code integrated terminal
- Linux Codespace
- Copilot plan: Copilot Free
- Initial CLI version shown in the screenshot: v1.0.3
- Update offered in the screenshot: v1.0.78
- Updated with
copilot update; the problem still reproduces /model autodoes not resolve the problem- Removing
COPILOT_GITHUB_TOKEN,GH_TOKEN,GITHUB_TOKEN, andCOPILOT_MODELfor the Copilot process does not resolve the problem - Re-authenticating with
/logoutand/logindoes not resolve the problem - The initial screenshot shows
Remaining reqs.: 0%
Related older reports:
Screenshot of the exact terminal state and error:
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện từ một GitHub Codespace bằng environment-unset copilot command đã được ghi lại, sau đó kiểm thử /logout, /login và /model auto trong khi kiểm tra số yêu cầu còn lại được báo cáo. Truy vết đường đi của CLI biến các phản hồi về khả dụng của model hoặc quota thành “No model available”; hoàn tất khi Copilot Free nhận được phản hồi hoặc nhận được thông báo rõ ràng về giới hạn sử dụ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, shell
- Lĩnh vực
- cli
- 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
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100