Show GitHub hostname for all footer account identities (via option)
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 CLI 页脚中的身份渲染以及 /user 的输出,然后检查 GitHub.com、Enterprise 主机和 gh 身份是如何解析的。完成的标准是:某个选项或页脚设置可以在这三种情况下显示所选用户名及其解析出的主机名,包括 via gh 身份。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, shell
- 领域
- authentication, cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100