github / github/copilot-cli

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

Aperta
#4,813 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

triage
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia confrontando il comportamento dell’app desktop avviata tramite github.exe con quello di Copilot CLI nel terminale per ~/.copilot/settings.json. Traccia la gestione di statusLine.command, footer.showCustom e footer.showContextWindow, quindi verifica che la sessione desktop esegua il rendering dell’output configurato oppure mostri continuamente l’utilizzo della finestra di contesto, come la CLI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
powershell
Ambito
cli, desktop
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.