github / github/copilot-cli

Copilot App: Adding internal Github hosted marketplace opens GitHub device page without displaying authentication code

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

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

triage
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

Adding an internal GitHub plugin marketplace through the Copilot App's Customize > Manage marketplaces UI starts GitHub device authentication and opens https://github.com/login/device, but the Copilot App never displays the device code. The GitHub page therefore asks for a code that the user has no way to obtain, and the marketplace cannot be added.

The user already has access to the internal repository. Authenticated GitHub CLI access to the repository succeeds, while anonymous access returns 404 as expected for an internal repository.

Affected version

GitHub Copilot App / bundled Copilot CLI 1.0.84-5

Steps to reproduce the behavior
  1. On macOS, open the GitHub Copilot App.
  2. Open Customize.
  3. Open Manage marketplaces.
  4. Enter the URL of an internal GitHub repository containing a valid .claude-plugin/marketplace.json, for example https://github.com/<organization>/<repository>.
  5. Click Add.
  6. When prompted, start GitHub authentication.
  7. Observe that the browser opens GitHub's device activation page and asks for a code, but no device code is displayed anywhere in the Copilot App UI.
Expected behavior

The Copilot App should prominently display the one-time GitHub device code before or while opening the device activation page, and keep it visible until authentication completes or is cancelled.

Alternatively, marketplace access should reuse an existing authenticated Git credential or GitHub CLI session when available.

Actual behavior

GitHub's device activation page opens and waits for a code, but the Copilot App does not show the code. The flow cannot be completed.

Additional context
  • Operating system: macOS
  • Repository visibility: internal
  • The repository is accessible to the current user and contains a valid marketplace manifest.
  • gh repo view <organization>/<repository> succeeds for the same user.
  • APM can resolve the same marketplace through the authenticated command-line path.
  • This appears related to, but is distinct from, #4103: the App now initiates an authentication flow, but its Customize UI does not surface the required device code.
  • Screenshots show the marketplace URL entered in Manage marketplaces followed by GitHub's Enter code page with no corresponding code visible in the Copilot App.

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

Không có tệp nguồn hoặc bài kiểm thử nào được nêu. Bắt đầu từ luồng xác thực Customize > Manage marketplaces và theo dõi cách trang thiết bị GitHub được mở, sử dụng issue liên quan #4103 làm ngữ cảnh. Được xem là hoàn tất khi mã thiết bị dùng một lần hiển thị trong Copilot App cho đến khi hoàn tất hoặc hủy xác thực, đồng thời có thể thêm marketplace nội bộ.

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, macos
Lĩnh vực
authentication, 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
Khá rõ ràng
Mức phù hợp với người mới
52/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.