github / github/copilot-cli

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

Đang mở
#2,306 9 bình luận 3 reaction 0 người được giao Xem trên GitHub
area:authentication area:enterprise
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

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

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

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

Hướng nghiên cứu

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.

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

Đánh giá

Công nghệ
node.js, shell
Lĩnh vực
authentication, authorization, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/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.