Skip to content

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

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.

Activity

  1. changed the title [-]Show GitHub hostname for all footer account identities[/-] [+]Show GitHub hostname for all footer account identities (via option)[/+] on Aug 30, 2026
  2. added
    area:authenticationLogin, OAuth, device auth, token management, and keychain integration
    area:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formatting
    and removed on Aug 31, 2026
  3. valentin-krasontovitsch commented on Oct 10, 2026

    @valentin-krasontovitsch
    Author

    ehrm i dunno how but this seems to be solved now (using version v1.0.95) 😅

    Image
  4. valentin-krasontovitsch commented on Oct 10, 2026

    @valentin-krasontovitsch
    Author

    never mind, reread this issue, this is about the footer, not about the info you see when running /user switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authenticationLogin, OAuth, device auth, token management, and keychain integrationarea:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formattingtriage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions