github / github/copilot-cli

Show GitHub hostname for all footer account identities (via option)

Đang mở
#4,666 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.

area:authentication area:terminal-rendering
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 feature or problem you'd like to solve

The Copilot CLI footer shows an account from a custom GitHub Enterprise domain as
username@blabla.ghe.com, but shows a GitHub.com account as only username. An
identity loaded through GitHub CLI is displayed as username (via gh) without
its resolved hostname.

This is ambiguous when the same login exists on GitHub.com and a GitHub
Enterprise host, or when gh is authenticated to multiple hosts. In particular,
the footer does not make it clear which underlying account Copilot is using.

Proposed solution

Add an option to always display the resolved GitHub hostname for the active
identity in the footer, including the default public host:

username@github.com
username@blabla.ghe.com
username@github.com (via gh)

Alternatively, provide a footer setting that enables the hostname explicitly.
The selected gh account and hostname should be visible together.

Related issue

This is related to #3897, which reports incorrect account selection in a
multi-account setup, but this request is specifically about making the active
identity unambiguous in the CLI footer.

Additional context

Running /user currently only shows the username for both GitHub.com and via gh
identities, so it does not resolve the ambiguity either.

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

Bắt đầu bằng cách lần theo việc hiển thị danh tính ở footer của CLI và đầu ra của /user, sau đó kiểm tra cách các danh tính của GitHub.com, các host Enterprise và gh được phân giải. Hoàn thành khi một tùy chọn hoặc thiết lập footer có thể hiển thị tên người dùng đã chọn cùng với hostname đã phân giải của tên đó trong cả ba trường hợp, bao gồm các danh tính via gh.

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
authentication, cli
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 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
65/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.