github / github/copilot-cli

/usage premium request counter significantly undercounts actual quota consumption

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

描述

- **Copilot CLI version:** `0.0.413`
- **OS:** macOS
- **Session:** ~24h single session, resumed with `--resume`

## Describe the bug

The `/usage` command reports a much lower premium request count than what is actually consumed from the monthly quota.

## Steps to reproduce

1. Start a long Copilot CLI session with heavy tool use (bash, edit, view, grep — no sub-agents)
2. Resume the session with `--resume` across launches
3. Check `/usage` — shows **6 Premium requests**
4. Check remaining quota — dropped from **>80% → <70%** (300 request quota = ~30+ requests consumed)

## Expected behavior

`/usage` session counter should match (or closely approximate) the number of requests deducted from the monthly quota.

## Actual behavior

`/usage` shows 6 requests; quota indicates ~30+ were consumed. The counter also appears to reset or drop after context compaction (auto-summarization): token counts dropped
from `1.4M input / 3.9K output` → `583K input / 1.1K output` mid-session, and the counter restarted from a lower number.

## Additional context

Compaction events may consume requests that are not carried over in the `/usage` counter after summarization. It is unclear whether quota consumption includes background
operations not surfaced in the session counter.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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