github / github/copilot-cli

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

オープン
#4,813 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

triage
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、github.exe から起動したデスクトップアプリと、~/.copilot/settings.json に対するターミナルの Copilot CLI の動作を比較します。statusLine.command、footer.showCustom、footer.showContextWindow がどのように処理されるかを追跡し、デスクトップセッションが設定された出力をレンダリングするか、CLI のようにコンテキストウィンドウの使用量を継続的に表示するかを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
powershell
領域
cli, desktop
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。