fix(usage): read Cursor plan usage from cursor-agent auth.json (#3486)

Headless hosts only have ~/.config/cursor/auth.json from a CLI login,
not the desktop state.vscdb token. Without that fallback Settings usage
stayed unavailable on VPS-style machines.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Lite
2026-08-18 10:46:15 +02:00
committed by GitHub
co-authored by Cursor
parent 4108960709
commit 2347242cdf
3 changed files with 76 additions and 3 deletions
+2
View File
@@ -141,6 +141,8 @@ Keep the protocol shape provider-agnostic. Do not add provider-specific renderer
Kimi Code usage follows the CLI-managed credential file at `KIMI_CODE_HOME` or `~/.kimi-code/credentials/kimi-code.json`; do not probe the legacy `~/.kimi` path as the primary source for current Kimi Code installs.
Cursor usage reads the desktop `state.vscdb` token first, then `cursor-agent`'s `~/.config/cursor/auth.json`. Headless hosts only have the CLI file.
---
## ACP Provider Checklist