Show local machine hostname in Copilot CLI interface
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- shell
- Domaine
- cli
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 62/100