Skip to content

Menu bar: Cursor Keychain reader tries a second account after a Deny #1928

Open

Description

@iamtoruk

Found during the review of #1926.

mac/Sources/CodeBurnMenubar/Data/CursorSafeStorage.swift reads the Safe Storage password from the Keychain by trying the accounts Cursor Key and then Cursor (accounts at line 12, readPassword() at lines 106-108). Any failure on the first account falls through to the second, a user Deny included. So a user who clicks Deny on the Cursor Key prompt can get a second prompt for Cursor straight after.

The Keychain consent policy (#1802) says stop at Deny. The reader should distinguish "item not found" (try the next account) from "access denied or cancelled" (stop, report locked), and the shared unlock from #1926 should record the Deny so Cursor and Grok Bot both stay quiet until the next user action.

Affected: macOS menu bar, Cursor and Grok Bot quota, only on Keychain prompt Deny.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions