Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Summary
Usage shows no Cursor history, even when cursor.com/dashboard lists recent requests for the same account. readCursorAccountUsage posts to https://cursor.com/api/dashboard/get-filtered-usage-events (packages/provider-cursor/src/server/accountUsage.ts:87 on main @ 5732bbee). Cursor still answers that with 200, but the body is now {} for any date range. T3 treats an empty body as zero events, so the scan succeeds with no records and no notice.
The Cursor dashboard no longer calls that endpoint. Its usage table reads GET /api/dashboard/v2/query-billing-items instead, and that returns the missing events with the same session cookie.
This is separate from #15906 (Usage reads the host CLI login rather than the account each Cursor instance bills). Here the CLI login and the T3 sign-in are the same account, and the history is still empty.
Steps to reproduce
- Log in with the Cursor CLI on the server (
cursor-agent login) and run a few Cursor turns in T3. - Confirm the requests appear at cursor.com/dashboard → Usage.
- Open Usage in T3. Cursor has no history.
- With the CLI token from
~/.config/cursor/auth.jsonand the cookie T3 builds (WorkosCursorSessionToken=<userId>::<accessToken>):POST /api/dashboard/get-filtered-usage-eventswith{"page":1,"pageSize":5,"startDate":"<ms>","endDate":"<ms>"}returns200 {}for 30 or 90 days. AddingteamId: 0or sending numeric dates also returns{}, andget-aggregated-usage-eventsreturns only{"startDate":"…"}.GET /api/dashboard/v2/query-billing-items?scope=user&startTime=<ISO>&endTime=<ISO>&pageSize=3returns the events.
A bad cookie gets a 307 redirect from both endpoints, so the {} is not an auth failure.
Expected behavior
Usage shows the Cursor requests that cursor.com/dashboard shows, or a notice when the history cannot be read.
Actual behavior
Cursor history is empty with no notice. usage-cursor-account-cache-v1.json stores the account with records: [] after each successful refresh.
Impact
Major degradation or frequent failure
Version or commit
Desktop 0.1.5 (Linux). The endpoint is unchanged on main @ 5732bbee.
Environment
Arch Linux, desktop app, local server, Cursor CLI file login (~/.config/cursor/auth.json), individual (non-team) Cursor account.
Logs or stack traces
Response from the new endpoint (identifiers removed):
{
"data": [
{
"billingItemId": "13dba27d-…",
"eventTime": "2026-11-01T03:43:46.022Z",
"product": "cursor",
"chargeCategory": "usage",
"usageType": "included",
"principal": { "type": "user", "id": "user_…" },
"usage": {
"cache-write-text-tokens": "0",
"cached-prompt-text-tokens": "46400",
"completion-text-tokens": "312",
"prompt-text-tokens": "1263"
},
"pricing": { "currency": "USD", "contracted": "0.0000000000" },
"displayExtras": { "model": "composer-2.5", "userEmail": "…", "displayLabel": "…" },
"hasTokenMeters": true,
"totalTokens": "47975"
}
]
}Notes for a fix, taken from the dashboard bundle:
- The request is a
GETwith query parametersscope(user, orteamwith a team header),startTimeandendTimeas ISO strings,pageSize, andcursorfor later pages. The next page comes frompagination.nextCursor, replacing page numbers andtotalUsageEventsCount. - Token counts are strings under
usage, with new keys (prompt-text-tokens,cached-prompt-text-tokens,cache-write-text-tokens,completion-text-tokens), replacingtokenUsage.inputTokensand the other numeric fields. - Cost is
pricing.contractedas a decimal string in USD, replacingtotalCents/chargedCents(see [Bug]: Cursor usage cost omits Cursor's token fee (uses totalCents, not chargedCents) #21408). - The model is
displayExtras.model. - An empty
{}from the old endpoint should probably surface as a notice and not count as "no usage", so a future API change does not fail silently again.
Activity
KanujVerma commentedon Nov 4, 2026
Note
🤖 grok-4.7 responding on behalf of KanujVerma
#29419 is already in v0.1.7 on this machine, and Cursor history is still missing current requests.
mainhas the same readers.Limits work.
GetCurrentPeriodUsageon 2026-11-04 showed Cursor Models at about 32%, Other Models at 0%, and Overall at about 30%. History does not. Desktop and local server are both 0.1.7 on macOS 27 arm64. Cursor is signed in through T3, and Keychain usage is enabled. The Keychain cookie cache and the API-keyGetFilteredUsageEventscache are the same account. A read at 2026-11-04T17:42Z stored 795 events. The newest event is 2026-11-03T19:10Z. There are no November 4 events, and the past 24 hours has one event.packages/provider-cursor/src/server/accountUsage.tsstill posts cookie logins tohttps://cursor.com/api/dashboard/get-filtered-usage-eventsand API-key sessions toDashboardService/GetFilteredUsageEvents. Rows with nulltokenUsageare skipped even when the event has a model and a cost. Nothing inv0.1.7...mainchanges this file.The dashboard read that still returns those requests is
GET /api/dashboard/v2/query-billing-items. The API-key path needs the equivalent;GetFilteredUsageEventsis returning a set that stops on November 3.Bartek532 commentedon Nov 10, 2026
Same here, any updates?
cms19859230182-lang commentedon Nov 22, 2026
Still happening on Desktop 0.1.11 (macOS) — 2026-11-23
Same pattern as the Nov 4 comment here: Limits work, history does not include current usage.
Environment
What we see
GetCurrentPeriodUsagesucceeds).Local evidence
~/.t3/userdata/usage-cursor-account-cache-v2.jsonafter re-login:2026-10-14(nothing from mid-Oct → today)From
server.trace.ndjsonaround refresh:POST …/DashboardService/GetFilteredUsageEvents→ 200CursorAccountUsage.readScopespans reportcursor.usage.events: 0/records: 0So for API-key / T3 browser sign-in,
GetFilteredUsageEventsappears to return a truncated set (history stops ~5+ weeks ago) while the period usage / Limits RPC stays current — matching this issue’s “old endpoint / missing current dashboard rows” diagnosis, and the note that the dashboard’squery-billing-itemspath still has the live requests.Happy to pull more logs if useful. Related fix PR #28526 looks closed without merge; we’re still on the old reader path in 0.1.11.
ZachZimm commentedon Nov 22, 2026
🤖 Claude (Opus 5.5 High), posting on behalf of @ZachZimm
Summary: This still happens on Desktop 0.1.11 (Linux). Past Cursor usage shows up in T3, but current usage doesn't, even though the usage limits are current.
What I see
What I found (in addition to what #34828 already reports)
The dashboard endpoint has the missing data, but only with a CLI login. With the Cursor CLI's login token (
~/.config/cursor/auth.json),query-billing-itemsreturns all 1,322 items for Nov 21–22. Things to know before building on it:500errors (it did for some of my August windows), so reads need retries.usageType: "included") has a price of"0.0000000000". The cost would have to be estimated from token counts. Some items haveusageType: "credits"instead."Prompt text tokens","Cached prompt text tokens"and"Completion text tokens"instead of theprompt-text-tokensstyle shown earlier in this issue.One endpoint accepts the API-key token, but it can't replace the history.
DashboardService/GetUserAnalyticsworks with the token T3 uses. It only returns request counts per day and per model, with no tokens or cost.Token usage is saved locally for Cursor turns run through T3. The Cursor SDK keeps a local database at
~/.cursor/projects/<workspace>/sdk-agent-store/<hash>/index.db. In therunstable, theusage_jsoncolumn records input, output, cache-read, cache-write and reasoning tokens for each run. 52 of the 57 runs since Nov 21 have this data. Reading it doesn't need any Cursor login, so it fits the API-key-only design. The limitation is that it only covers Cursor usage that went through T3, not usage from Cursor's own editor or CLI.