Show GitHub hostname for all footer account identities (via option)
Nessuno ha ancora preso questa issue.
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando il rendering dell'identità nel footer della CLI e l'output di /user, quindi esamina come vengono risolte le identità di GitHub.com, degli host Enterprise e di gh. Il lavoro è completato quando un'opzione o un'impostazione del footer può mostrare il nome utente selezionato con il relativo hostname risolto in tutti e tre i casi, comprese le identità via gh.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github, shell
- Ambito
- authentication, cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 65/100