Cursor: keychain JWT not found when Cursor CLI stores it under account "cursor-user"
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go, macos, sqlite
- Domain
- authentication, backend
Research direction
Grep the Go sources for the log string SQLite token is opaque; preferring keychain JWT to find the Cursor credential provider and the macOS Keychain lookup that sits next to the SQLite reader. Read that lookup first: today it queries the service with the macOS username as account, so extend it to also try account cursor-user (or query by service alone) before falling back to the opaque SQLite token. Done looks like keychain items stored under cursor-user being picked up after cursor-agent login, with a test or a manual run against a keychain populated that way.
Written by the indexing model from the issue text.
Description
On macOS (v2.14.17), Cursor Desktop stores an opaque cursor-safe-storage:v1 token in SQLite, so onWatch should fall back to the Keychain JWT. After cursor-agent login, the Keychain items cursor-access-token and cursor-refresh-token exist, but with account cursor-user, not the macOS username. onWatch doesn't detect them and keeps using the SQLite token, which fails with "unauthorized - invalid or expired token". When I copy the same items under the macOS username, onWatch logs "SQLite token is opaque; preferring keychain JWT" and polling works. Suggested fix: also look up account cursor-user, or search by service only.
- Dominant language
- Go
- Stars
- 756
- Forks
- 65
- Avg merge
- 9d 4h
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from onllm-dev/onWatch
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Antigravity CLI source never becomes ready: readiness probe uses GetUnleashData, which agy 1.5.x answers with 404Possibly taken @prakersh claimed this 6 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Feature request: opt-in auto quota-starter for Claude five-hour sessionsPossibly taken @prakersh claimed this 6 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
No key/token validation, silently ignores errorsPossibly taken @prakersh claimed this 6 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 56/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in onllm-dev/onWatch
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
containers/gvisor-tap-vsock#796 ·
Maintainers usually reply within 2 days
-
external needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
celestiaorg/celestia-node#5448 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsPossibly taken @huanghaoyuanhhy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zilliztech/milvus-backup#1418 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
projectdiscovery/nuclei#8423 ·
Maintainers usually reply within 1 day