github / github/copilot-cli

Show used tokens inline an not only after closing copilot

未關閉
#3,011 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
area:sessions area:terminal-rendering
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

With the upcomming https://github.blog/news-insights/company-news/github-copilot-is-moving-to-usage-based-billing/ it becomes important to see what consumes tokens (and how much).

### Proposed solution

When I close copilot it shows for example

> Tokens ↑ 275.8k • ↓ 3.5k • 219.4k (cached)

but during a session there is no way to know how many was consumed, neither `/session show`, the status-bar or the summary includes any direct indication.

It would be good to show token information in the status bar, and the session should show the complete summary of *all* interactions for this session - currently the summary at the end resets after resuming a session so there is no way to know how expensive a given session over a long run was.

At best there would be even a `/session stats` that shows what action has taken what tokes, e.g. MCP server interactions, file changes, "thinking" and so on.

### Example prompts or workflows

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

Start by tracing the status-bar, `/session show`, and session-summary entry points mentioned in the issue. Done means token usage is visible during a session and the session summary remains cumulative after resuming; any per-action statistics would need an agreed scope.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cli
領域
cli
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
冷清
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。