github / github/copilot-cli

You are not authorized to use this Copilot feature, it requires an enterprise or organization policy to be enabled

Ouverte
#2,306 9 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
area:authentication area:enterprise
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

THis happens 2 - 3 times a week for me and then disapears. I was using co pilot last night and this morning i come in to get this error

You are not authorized to use this Copilot feature, it requires an enterprise or organization policy to be enabled

/context returns this

 Context information is not yet available. Please wait for login to complete

But I am logged in

/models returns

 Failed to load models: access denied by Copilot policy. (Request ID: DFBE:25DEF5:25AD435:2B5358B:69C4FFD6)

Check your Copilot CLI policy setting.

I am the admin and i know the settings HAVE NOT Changed since last night. The version last night was the same

### Affected version

v1.0.11

### Steps to reproduce the behavior

Use co pilot

### Expected behavior

Not to get this error message

### Additional context

2026-03-26T09:43:51.208Z [INFO] Starting Copilot CLI: 1.0.11
2026-03-26T09:43:51.208Z [INFO] Node.js version: v24.11.1
2026-03-26T09:43:51.209Z [INFO] Registering foreground session: 50a2f91d-9c24-4025-975e-d160917f2847
2026-03-26T09:43:51.215Z [INFO] Workspace initialized: 50a2f91d-9c24-4025-975e-d160917f2847 (checkpoints: 0)
2026-03-26T09:43:51.494Z [INFO] Login status unknown
2026-03-26T09:43:51.494Z [INFO] Registering foreground session: 50a2f91d-9c24-4025-975e-d160917f2847
2026-03-26T09:43:51.506Z [INFO] Remote session access enabled
2026-03-26T09:43:51.507Z [INFO] Init suggestion check completed
2026-03-26T09:43:51.526Z [INFO] Welcome stewartadvt!
2026-03-26T09:43:51.648Z [INFO] Registering foreground session: 50a2f91d-9c24-4025-975e-d160917f2847
2026-03-26T09:43:51.658Z [ERROR] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly
2026-03-26T09:43:51.658Z [ERROR] Creating MCP client for github-mcp-server...
2026-03-26T09:43:51.658Z [ERROR] Connecting MCP client for github-mcp-server...
2026-03-26T09:43:51.997Z [INFO] No update needed, current version is 1.0.11, fetched latest release is v1.0.11
2026-03-26T09:43:53.462Z [ERROR] MCP client for github-mcp-server connected, took 1804ms
2026-03-26T09:43:53.462Z [ERROR] Started MCP client for remote server github-mcp-server
2026-03-26T09:43:53.463Z [ERROR] GitHub MCP server configured after authentication

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reproducing the intermittent failure in Copilot CLI with /context and /models while reviewing the provided startup log, especially the “Login status unknown” and policy errors. Done means the authenticated admin consistently receives context and models without the authorization error; retain the request ID and timing if it persists.

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

Évaluation

Stack technique
node.js, shell
Domaine
authentication, authorization, cli
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Active
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

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