github / github/copilot-cli

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

Ouverte
#4,666 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

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

Description

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.

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

Commencez par suivre le rendu de l’identité dans le pied de page de la CLI et la sortie de /user, puis examinez comment sont résolues les identités GitHub.com, des hôtes Enterprise et de gh. C’est terminé lorsqu’une option ou un paramètre du pied de page peut afficher le nom d’utilisateur sélectionné avec son nom d’hôte résolu dans les trois cas, y compris les identités via gh.

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

Évaluation

Stack technique
github, shell
Domaine
authentication, cli
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
65/100

Recevez les nouvelles issues par e-mail

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