github / github/copilot-cli

Show local machine hostname in Copilot CLI interface

Open
#2,774 0 comments 0 reactions 0 assignees View on GitHub
area:terminal-rendering
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

## 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

Contributor guide

Open the contributing guide

Research direction

Start by locating the Copilot CLI environment context section and the code that supplies its existing context fields. Trace how runtime environment details are obtained on Linux, macOS, and Windows, then verify that the hostname appears in the context panel while existing fields remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.