Skip to content

feat(runtime): sign the box in to Antigravity from the console (v0.497.0) - #968

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/agy-login
Dec 3, 2026
Merged

vikasprogrammer merged 1 commit into
mainfrom
feat/agy-login

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

Antigravity had no console sign-in; the only way was ssh + AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1 agy as the service user.

What

  • Settings → Runtime → Runtimes shows Antigravity signed in / not signed in; an owner gets Sign in / Sign in again. Same prompt on an agent whose runtime is Antigravity.
  • POST /api/runtimes/:id/login (owner) → RuntimeLoginManager.startBox; poll / code / cancel reuse the guided-login routes.
  • agy's own sign-in runs in a throwaway pane with HOME at a scratch dir; when it writes its token there, only that file is moved to $AOS_REAL_AGY_DIR / ~/.gemini/antigravity-cli (temp + rename, 0600, old one kept as .prev). Cancel/failure leaves the live sign-in untouched.
  • Declared on the spec as boxLogin — no runtime-id comparisons.

Verified against the real agy (1.5.19/1.5.23): link surfaced; a bogus code prints token exchange failed … Press any key to go back and the flow re-arms with a fresh link; cancel leaves no scratch dir and no agy process. Leftover-process cleanup matches ^([^ ]*/)?agy .*<scratch> — anchored, because the pane's sh -c and possibly the tmux server carry the path too (checked on macOS and Linux that decoys survive).

Not verified: a real completed sign-in (needs a human Google login) — the final step is file-based and unit-tested.

Tests: scripts/runtime-login-test.cjs (+18 assertions), governance suite 154/154.

🤖 Generated with Claude Code

…7.0)

Settings → Runtimes (and an agent set to Antigravity) shows signed in / not
signed in, and an owner can sign in with no ssh: the server drives agy's own
Google sign-in in a throwaway pane with HOME at a scratch dir, relays the link
and the pasted code, and moves only the token file to where sessions read it
(temp + rename, 0600, previous kept as .prev). A bad code re-arms with a fresh
link. Leftover agy processes are killed by an argv match anchored on the
program name, so the pane shell or tmux server is never hit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vikasprogrammer
vikasprogrammer merged commit 030cd54 into main Dec 3, 2026
1 check passed
@vikasprogrammer
vikasprogrammer deleted the feat/agy-login branch December 3, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant