Cursor: keychain JWT not found when Cursor CLI stores it under account "cursor-user"

オープン 初心者向け
#166 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@prakersh がすでに取り組んでいます。

2026年11月25日 から。

  • #169 @prakersh による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, macos, sqlite

調査の方向性

Goソースでログ文字列 SQLite token is opaque; preferring keychain JWT を検索し、Cursorの認証情報プロバイダーと、SQLiteリーダーの隣にあるmacOS Keychainの検索処理を見つけます。まずその検索処理を読みます。現在はmacOSのユーザー名をアカウントとしてサービスを検索しているため、SQLiteの不透明なトークンにフォールバックする前に、アカウント cursor-user も試すように拡張するか、サービスだけで検索するようにします。cursor-agent login の後に cursor-user の下に保存されたKeychain項目が取得されることを、そのように設定したKeychainに対するテストまたは手動実行で確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
756
フォーク
65
平均マージ
9日 4時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

onllm-dev/onWatch のほかの issue

onllm-dev/onWatch の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。