account.getQuota returns the request timestamp as resetDate instead of the quota reset date
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
The Copilot CLI JSON-RPC account.getQuota response returns an incorrect resetDate for quota snapshots.
Environment:
- GitHub Copilot CLI: 1.0.80
- CLI started with:
copilot --server --no-auto-update --log-level error --stdio
I sent the following JSON-RPC request:
{"jsonrpc":"2.0","id":2,"method":"account.getQuota","params":{}}
For premium_interactions, the raw response included:
{
"entitlementRequests": 1500,
"usedRequests": 1500,
"remainingPercentage": 0,
"resetDate": "2026-08-15T23:06:14.840-07:00"
}
This timestamp matched the time the account.getQuota request was made, rather than the account's actual premium quota reset date. The same resetDate timestamp was returned for chat, completions, and premium_interactions.
The GitHub Copilot web UI shows the actual billing-cycle reset date, for example:
Resets in 16 days on Sep 1, 2026
The CLI response does not include a separate quota_reset_at or equivalent field.
Because resetDate tracks the request time, CLI/API consumers cannot accurately display when the premium quota resets.
Expected behavior:
- resetDate should contain the actual quota/billing-cycle reset timestamp; or
- account.getQuota should expose a separate reset timestamp field for each quota bucket.
Actual behavior:
- resetDate is effectively the quota-fetch timestamp and changes each time account.getQuota is called.
Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 JSON-RPC 处理程序 account.getQuota 以及构建配额快照的代码。跟踪每个配额 bucket 的 resetDate 是如何填充的,然后验证重复请求不再返回请求时间戳,并且响应会公开实际的配额重置时间。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- api, cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 57/100