github / github/copilot-cli

Copilot Free in GitHub Codespaces: "No model available" after update, Auto selection, token isolation, and re-login

Ouverte
#4,405 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

area:authentication area:models
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

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 /logout and /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
  1. Open a GitHub Codespace.

  2. Run copilot update.

  3. Launch Copilot CLI without the Codespaces token variables:

    env -u COPILOT_GITHUB_TOKEN -u GH_TOKEN -u GITHUB_TOKEN -u COPILOT_MODEL copilot
    
  4. Run /logout, then /login, and authenticate again with the Copilot Free account.

  5. Run /model auto.

  6. Enter a minimal prompt such as:

    Reply with "hello".
    
  7. 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:

  1. Respond using Auto model selection, because Copilot CLI is documented as available with all Copilot plans; or
  2. 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 auto does not resolve the problem
  • Removing COPILOT_GITHUB_TOKEN, GH_TOKEN, GITHUB_TOKEN, and COPILOT_MODEL for the Copilot process does not resolve the problem
  • Re-authenticating with /logout and /login does not resolve the problem
  • The initial screenshot shows Remaining reqs.: 0%

Related older reports:

Screenshot of the exact terminal state and error:

GitHub Copilot CLI showing No model available in a Codespace terminal

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Reproduisez depuis un GitHub Codespace avec le environment-unset copilot command documenté, puis testez /logout, /login et /model auto tout en vérifiant le nombre de requêtes restantes indiqué. Suivez le chemin de la CLI qui transforme les réponses concernant la disponibilité du modèle ou le quota en « No model available » ; c’est terminé lorsque Copilot Free reçoit une réponse ou obtient un message clair indiquant une limite d’utilisation.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github, shell
Domaine
cli
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.