Skip to content

[Bug]: macOS repeatedly prompts for the login keychain password to access key "gemini" (Antigravity provider) #39775

Closed as duplicate

Description

@albert2704

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. On macOS, enable the Antigravity provider and sign in to Gemini.
  2. Use T3 Code normally for a while, letting the provider start and stop.
  3. The system keychain dialog appears; click Always Allow.
  4. Keep using T3 Code and let a nightly update install.
  5. The dialog returns.

Expected behavior

The credential is read once and reused. No system dialog after the first approval.

Actual behavior

macOS repeatedly shows:

T3 Code (Nightly) wants to access key "gemini" in your keychain.
To allow this, enter the "login" keychain password.

It returns after a random period — roughly hourly, and again after each nightly auto-update — even after clicking Always Allow. It steals focus mid-turn and blocks the Antigravity provider until dismissed.

Impact

Major degradation or frequent failure

Version or commit

0.1.11-nightly.20261120.4969 (a 0.1.12-nightly.20261120.4994 update was already downloaded and pending)

Environment

macOS 27.0 (build 26A428), arm64. Provider: Antigravity, using the bundled Antigravity CLI 1.5.12.

Logs or stack traces

The keychain item is not a T3 Code credential:

$ security find-generic-password -s gemini
class: "genp"
    "acct"<blob>="antigravity"
    "cdat"<timedate>="20261119161459Z"   # created 2026-11-19 16:14:59
    "mdat"<timedate>="20261120144641Z"   # modified 2026-11-20 14:46:41
    "svce"<blob>="gemini"

Service gemini, account antigravity — the Antigravity CLI's saved Gemini sign-in. T3 Code's own keychain code in app.asar is passkeys/Touch ID (PreviewPasskeys, touchIdKeychainAccessGroup) and browser-profile import (Chrome Safe Storage, needsKeychainApproval); nothing in the bundle reads a gemini item.

The CLI stores it through zalando/go-keyring's macOSXKeychain provider (symbols present in the binary). The dialog names T3 Code because macOS attributes a child process's keychain access to the app that spawned it — T3 Code is the responsible process, so the ACL check runs against T3 Code's signature, not the CLI's.

Provider spawn count on 2026-11-20, one acp-server-*.log per spawn:

$ ls ~/.t3/userdata/providers/antigravity/*/antigravity-acp/log/ | wc -l
34

So the item is read ~34 times a day, and each read is a fresh ACL check.

The Antigravity CLI's own release notes acknowledge a related bug, under ## 1.5.9:

Fixed the macOS "Keychain Not Found" dialog reappearing about once an hour: after a keychain write fails, the CLI now saves your sign-in token to its file-based storage for the rest of the session instead of retrying the keychain on every token refresh.

This machine is on 1.5.12, so that fix is present — but it only covers the CLI's own dialog. It does not stop the ACL prompt raised against the responsible process.

Workaround

Clicking Always Allow suppresses it until the next nightly update replaces the bundle. Deleting the gemini item and signing in to Antigravity again also resets it, at the cost of a fresh login.


Why it repeats

  1. T3 Code spawns a fresh antigravity agentapi process for the provider.
  2. Each spawn reads the gemini item. T3 Code (Nightly) is not in that item's ACL, so macOS prompts.
  3. Always Allow adds the current binary to the ACL, but the ACL entry is bound to the app's code signature. Every nightly auto-update replaces the bundle, so the entry stops matching and the next read prompts again.

Suggested directions

  • Keep the Antigravity CLI process alive across provider restarts instead of spawning one per start, so the keychain is read once per session.
  • Or read the gemini/antigravity item once in T3 Code and hand it to the CLI, so the ACL is granted to a single stable process.
  • Or set the item's partition list / ACL to trust the CLI binary rather than the host app.
  • At minimum, detect the prompt and surface an in-app explanation instead of leaving the turn hanging.

Caveat

On this machine the bundle is signed with a local self-signed identity (Authority=Albert Local Code Signing), which makes the ACL churn worse than a Developer ID build would. Worth re-checking against a normally signed nightly — but the per-spawn keychain read is independent of that.

Activity

  1. juliusmarminge commented on Nov 20, 2026

    @juliusmarminge
    Member

    This is the same problem as #37587, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

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