Show local machine hostname in Copilot CLI interface
未关闭
area:terminal-rendering
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
## Summary
Please include the local machine hostname in the Copilot CLI interface context panel.
## Motivation
When running multiple shells/machines (local + remote, containers, SSH sessions), it is easy to lose track of where a command will run. Showing hostname directly in the interface would reduce mistakes.
## Requested behavior
Add a field in the environment context section, e.g.:
- `Hostname: my-machine`
## Notes
- Prefer the actual runtime hostname from the executing environment
- Keep existing context fields unchanged
- This should work across Linux/macOS/Windows
贡献指南
调研方向
首先定位 Copilot CLI 环境上下文部分,以及提供其现有上下文字段的代码。跟踪在 Linux、macOS 和 Windows 上如何获取运行时环境详细信息,然后验证 hostname 是否显示在上下文面板中,同时现有字段保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 62/100