github / github/copilot-cli

Support custom status line and context-window usage in the Copilot desktop app

Ouverte
#4,813 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

triage
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

Summary

The native GitHub Copilot desktop app does not render the custom status line or context-window footer configured in ~/.copilot/settings.json, even though the same configuration works in the terminal-hosted Copilot CLI.

Environment

  • OS: Windows
  • GitHub Copilot desktop app: 1.1.19
  • Desktop executable: C:\Users\<user>\AppData\Local\Programs\GitHub Copilot\github.exe
  • GitHub Copilot CLI: 1.0.84-4

Configuration

{
  "statusLine": {
    "type": "command",
    "command": "powershell.exe -NoProfile -ExecutionPolicy Bypass -File \"C:\\Users\\<user>\\.copilot\\statusline.ps1\""
  },
  "footer": {
    "showContextWindow": true,
    "showCustom": true
  }
}

The configured PowerShell command reads the status payload from stdin and prints context-token usage.

Steps to reproduce

  1. Configure statusLine.command, footer.showCustom, and footer.showContextWindow in ~/.copilot/settings.json.
  2. Start Copilot CLI from PowerShell by running copilot.
  3. Send a prompt and observe that the custom context usage (for example, 49.5k/? tokens) appears in the terminal footer.
  4. Close the terminal session and launch the native desktop app using github.exe.
  5. Open a session and send a prompt.

Actual behavior

The desktop app does not display the custom status-line output or a context-window usage indicator. The command itself is valid and works in the terminal CLI.

Expected behavior

The desktop app should either:

  1. honor statusLine.command and the relevant footer.* settings, or
  2. provide a native equivalent that continuously shows used/remaining context-window capacity for the active session.

Why this matters

Context-window visibility helps users decide when to summarize, checkpoint, or start a new session before earlier context is compacted or lost. Users moving between the terminal CLI and native desktop app should have equivalent visibility into session context usage.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par comparer le comportement de l’application de bureau lancée via github.exe avec celui de Copilot CLI dans le terminal pour ~/.copilot/settings.json. Suivez la manière dont statusLine.command, footer.showCustom et footer.showContextWindow sont gérés, puis vérifiez si la session de bureau restitue la sortie configurée ou affiche en continu l’utilisation de la fenêtre de contexte, comme la CLI.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
powershell
Domaine
cli, desktop
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.