Skip to content

Antigravity login fails: the pinned agy CLI (1.5.15) has no login subcommand #3895

Done

Description

@integry

Problem

Interactive Antigravity login fails on the pinned CLI (1.5.15). ProPR runs exec agy login (packages/shared/src/agentLogin.ts, the antigravity descriptor), and that CLI has no login subcommand:

Error: unexpected argument "login".
Prompts are read only from -p/--print, -i/--prompt-interactive, or stdin, so this argument would have been ignored.
Could not save the login: the login finished but wrote no credential files

Seen on 2026-11-29 on a Fly instance (Sprites runtime) via Coding agents → antigravity → Log in. The same command and the same pin (ANTIGRAVITY_CLI_VERSION=1.5.15 in Dockerfile.agent) are used for Docker logins on main, so this isn't specific to any runtime. The Claude and Codex logins work on the same instance.

Expected

Log in → antigravity starts the login flow that CLI 1.5.15 actually supports, shows the authorization link or code prompt in the login terminal, and writes the credential files under the agent's .gemini config directory, which the existing credential capture then saves.

Notes for the implementer

  • Find out from the 1.5.15 CLI itself (agy --help, the interactive first-run flow, or a slash command such as /login in interactive mode) how a headless login is started. Don't guess. If the flow is interactive-only, drive it through the existing login terminal: the terminal keys (↑/↓/Enter) and the response field already exist for provider menus.
  • Check which files a successful login writes (names only) and make sure the credential capture and "Ready" detection cover them. Today the session reports "wrote no credential files".
  • Keep the command in one place, shared by the Docker and remote-runtime login paths, and add a test that pins the command to the CLI version (so a future CLI bump that changes the login surface fails a test, not a user's login).
  • If the CLI exposes a version-specific flag, gate on the pinned version instead of probing at run time.

Acceptance

  • Unit tests for the new login command or descriptor and for credential-file detection.
  • Live: a Docker instance logs in to Antigravity from the dashboard and the agent shows Ready. The epic's Sprites login path picks up the same descriptor when the epic next merges main.

Activity

  1. propr-dev commented on Nov 29, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3895/gpt-6.2-sol-antigravity-login-fails-t-20261129-2253-izm
    • Base Branch: main
    • Worktree: issue-3895-20261129-2253-gpt-6.2-sol-izm

    🔍 Track Task Execution

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions