account.getQuota returns the request timestamp as resetDate instead of the quota reset date
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza localizando el controlador JSON-RPC account.getQuota y el código que construye las instantáneas de cuota. Sigue cómo se establece resetDate para cada bucket de cuota y, después, verifica que las solicitudes repetidas ya no devuelvan la marca de tiempo de la solicitud y que la respuesta exponga la hora real del restablecimiento de la cuota.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- shell
- Área
- api, cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 57/100