Repository navigation
feat(runtime): sign the box in to Antigravity from the console (v0.497.0) - #968
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Antigravity had no console sign-in; the only way was ssh +
AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1 agyas the service user.What
POST /api/runtimes/:id/login(owner) →RuntimeLoginManager.startBox; poll / code / cancel reuse the guided-login routes.HOMEat 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.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 backand the flow re-arms with a fresh link; cancel leaves no scratch dir and noagyprocess. Leftover-process cleanup matches^([^ ]*/)?agy .*<scratch>— anchored, because the pane'ssh -cand 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