You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(antigravity): run every chat on agy, with one sign-in choice and an in-app agy sign-in - #48305
Antigravity chats now always run agy. Orca no longer has a second program, Google's bundled ACP server, with its own separate Google sign-in. There is one choice, how you sign in, and Sign in signs agy itself in, inside Orca.
Files
Added
Deleted
Net
Test
9
$\color{#1a7f37}{\Huge{\mathbf{+}}}$102
$\color{#cf222e}{\Huge{\mathbf{−}}}$351
$\color{#cf222e}{\Huge{\mathbf{−}}}$249
Prod
112
$\color{#1a7f37}{\Huge{\mathbf{+}}}$1632
$\color{#cf222e}{\Huge{\mathbf{−}}}$3714
$\color{#cf222e}{\Huge{\mathbf{−}}}$2082
What Changed
One program, one choice
Every Antigravity chat runs agy acp: your own agy, or Orca's copy where you have none. The saved sign-in method alone picks where it runs:
Google account: agy's own home and login, the same one agy uses in the terminal.
Gemini Enterprise, Gemini API key, gcloud: agy on a home Orca owns (--gemini-dir). Orca writes the method and project into that home's settings.json. Where agy keeps its login in a file (SSH, Linux without a keyring), agy's Google login reaches this home through a private copy.
Chats Orca's old server started: they resume on agy in the folder they already live in, with their history.
The route no longer checks agy to decide. The chat start, the model picker, Install and Settings all read the saved method, so they can't disagree, and nothing waits on an agy check.
Removed:
the pinned server (1.5.2), with its download, background updates, probe, proxy shim, browser helper and rules injection;
Orca's own Google sign-in and its token files;
the "Google account sign-in: agy's / Orca's built-in" setting.
Sign in, in Orca
Sign in runs agy acp --login on the host, the chat's host for remote chats.
Orca shows Google's link (it opens once, with a Copy button) and an always-visible box for the code Google shows, or that page's address. agy reads the pasted line from stdin.
On success, idle chats on agy pick up the login at their next send, and cached checks and model lists are dropped. A code Google refuses shows agy's reason.
Settings, the chat's sign-in strip, bots and the transcript's Sign in all use this flow. The terminal that ran agy for sign-in is gone.
What you see
Composer chip: names the method the chat uses ("Google account", "Gemini API key", "gcloud · project"). The menu lists the methods, a "Runs on: Your agy · v…" line and "Sign-in settings…". It no longer waits on the host's install status, which is why it sometimes showed only after a Settings visit.
A chat on agy's own home after you switch methods: it keeps agy's Google login, because its history lives there. Its chip says so: "This chat keeps agy's own Google login. New chats use Gemini API key." A new optional status field, ownLogin, carries that.
Settings › Antigravity: one group replaces "Antigravity Chat" and "agy in the terminal". A Google-account chat and agy in the terminal now use the same login, so the group shows:
"Sign in with": how chats sign in;
agy's Google accounts, shared by chats and the terminal: switch, usage, remove, plus Sign in and Add account, both run in Orca. Add account saves the current login first and the new one afterwards, so nobody has to run /logout in a terminal;
Runtime.
A WSL location keeps only its accounts, since chats never run there.
agy's sign-in state: read whenever a chat or Settings subscribes, so no surface depends on another having asked first.
The chat's sign-in strip:
Signed out, it shows one split button, Sign in with Google ▾, with one line naming what else Orca found ("Your gcloud login also works."). The menu lists those options and "Other ways to sign in…".
While signing in, it shows only the box for the code, a small × and "Page didn't open? Copy the sign-in link".
A refused code returns to the button with the reason. Nothing in the strip is filled.
A chat that hasn't started follows the method picked in it:
Before a chat's first turn, its launch, model list and sign-in notice use the home the saved method selects, so "Use your gcloud login" picked inside a signed-out chat applies to that chat.
The launch records the new home as the chat's own (movedAccountHome, applied only while the record has no provider handle).
A chat with a conversation keeps the home its history lives in.
The model picker works before a chat starts:
agy's model list is fetched ahead of time, since agy starts quickly now that the server is gone, rather than only when a picker asks. A new chat's picker fills in about two seconds after it opens.
When the list can't load, the picker says why: "Loading models…", or "Sign in to see the models you can use." when agy is signed out. It no longer says "Available after the session starts."
A listing's throwaway session is deleted only once agy has exited (the shared model-list runner waits up to 5 s), so agy can't write it back.
Keys and versions
Inherited GEMINI_API_KEY: no longer stripped on agy's own home. agy 1.5.5 and later use it only when their own settings pick a key provider (checked on 1.5.5, 1.5.13 and 1.5.16). Before, people who set agy up with a key were sent to the server.
agy 1.5.5 or newer is now required: the oldest release shown to run on a given home and to ignore an inherited key.
Unchanged: the client identity Orca sends to agy.
Older paired clients and hosts
The sign-in RPCs keep their names, shapes and capability. An older client's Sign in now signs agy in; its paste box accepts the landing page's address.
antigravityGoogleSignIn and antigravityServerAutoUpdateEnabled stay accepted host-owned keys but are no longer read.
Removing program: 'server' for Antigravity is refused rather than removing agy.
Why
Most Antigravity reports came from Orca weighing two programs per chat in several places that disagreed:
Fixing each place keeps the decision alive. Removing the second program removes the decision itself.
#45588 built this and was set aside in #46125 to keep a Google sign-in that needs no terminal. agy acp --login provides that now: it prints the link and reads the code from stdin, so Orca drives it in-app, locally and on remote hosts. The design follows #45588's two homes and its login-file copy, rebuilt on current main.
Hidden dev build, agy 1.5.16. The throwaway home uses a dummy key and a local fake Gemini endpoint. Before: the chip showed "agy's own login" or a backend name, or nothing until the host answered, and Settings had the agy-vs-Orca sign-in choice.
A new chat: the chip names the method 282 ms after opening:
The chip's menu:
After switching to Gemini API key, a chat on agy's own home says it keeps agy's login:
The chat's sign-in strip has one control in each state. Signed out, it shows Sign in with Google, with what else Orca found named underneath and listed in the menu:
Waiting for the code shows the paste box, a small Cancel, and a link to copy the sign-in page:
When Google refuses a code, the strip goes back to the button and says why (dark theme):
Settings › Antigravity: one group, with the method, agy's accounts shared by chats and the terminal, an in-app Add account, and the runtime:
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
macOS, hidden dev build, agy 1.5.16 (throwaway home, file login storage, dummy key, local fake Gemini endpoint):
Google account on agy's own home: the chip shows at once and the picker lists Gemini 4. A message got its reply.
Switch to Gemini API key from the chip: the new chat runs agy acp --gemini-dir <profile>/antigravity-agy-chat --app-data-dir antigravity-acp, lists Gemini 4 and replies. The older chat's chip names agy's login.
Google account, agy signed out:
the chat shows Sign in, then the link and paste box;
a fake code gives "Google didn't accept that code. Start sign-in again and paste the new code." in the chat and in Settings.
Protocol checks:
Old server chats: a chat made on the pinned 1.5.2 server (a fake model was told "cedar-77") was listed and resumed by agy 1.5.16 at --gemini-dir <that home> --app-data-dir antigravity-acp. Its next model request carried the earlier turn.
Same Google link for both Google methods:agy acp --login prints the same link for oauth-personal and oauth-business.
Inherited key: agy ignores it without a key provider in its settings, and uses it with one.
Automated:
New tests: the link check (only Google's own link back to agy's callback is opened; only one pasted line is written), each method's home and args, and the login-file copy for Google methods but not keys.
Gate:pnpm check:changed passes (43 checks).
Also: agy's keyring-marker check no longer blocks the main thread (existsSync became an async stat). That shrinks the blocking-helper and sync-fs baselines.
Not tested: a real Google sign-in end to end (it would replace my own keychain login), Windows, and a real SSH host.
Performance
Less work than before:
New chats and picker reads no longer start agy to decide where to run.
The 100 MB server is never downloaded or updated.
One read: agy's sign-in is read in the background when a chat or Settings subscribes. It uses the existing 5-minute cached check and doesn't block anything.
Risk
Level: High
Who is affected:
People whose only Google login was Orca's server sign-in: they see "isn't signed in" with Sign in on their next chat, and sign agy in once.
Google-method chats on the old server: they resume on agy's login. Where agy keeps its login in a file, Orca's home gets a copy at each start.
agy older than 1.5.5: chats ask to update. Orca's copy is offered where there's none.
What is left on disk:
The old server releases and saved server tokens stay, unused, so a downgrade still works.
Backing out:
A plain revert brings the server path back.
The server re-downloads on first use after a revert.
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Cross-platform:
Sign in spawns agy through @orca/process-host; no shell is involved.
Windows keeps its updater-flag scrub.
Mobile: no Antigravity sign-in UI there. Failure copy is unchanged.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
Antigravity chats now launch through agy ACP. Personal Google OAuth uses the user’s home; other saved methods use an Orca-owned home. Sign-in starts agy directly and accepts a pasted code or callback address. Session status reports when a chat uses the host program’s own login and carries account-home changes for sessions before their first turn. The renderer, account settings, model-listing states, and translations were updated. The managed Antigravity runtime and related sign-in paths were removed.
Severity of issue fixed: Medium
Merge Risk: Low · up to 0724d
Antigravity chats now run through agy and sign in via agy directly. Several minor issues remain open in sign-in handling and settings feedback. The most notable is that the previous login may be replaced even when saving it failed. These are bounded, so the change is mergeable, but the open concerns are worth addressing.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the core change: every Antigravity chat now runs on agy, with a single sign-in choice and an in-app agy sign-in. The summary confirms that the managed server and Orca's separate Google…
Linked Issues check
Active directly linked issues: #45337, #46288, #46753, #44498, #33188. No parent or contextual issues apply. Evidence is the whole-PR summary from merge base 99d6252 t…
Out of Scope Changes check
Most changes follow from removing the pinned server and Orca's separate Google sign-in. These include the deleted runtime, probe, browser helper, proxy shim, token files, sign-in server and session fi…
Description check
The description follows the repository template closely. It has every required section: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk (Level: High), Review, Notes, an…
Full details: Title check
Explanation
The title names the core change: every Antigravity chat now runs on agy, with a single sign-in choice and an in-app agy sign-in. The summary confirms that the managed server and Orca's separate Google sign-in were removed, and that sign-in now runs agy acp --login inside Orca. The title is conventional and specific, and it is accurate for this changeset.
Full details: Linked Issues check
Explanation
Active directly linked issues: #45337, #46288, #46753, #44498, #33188. No parent or contextual issues apply. Evidence is the whole-PR summary from merge base 99d6252 to head 0724d73. I did not run repository inspections. The summary establishes the relevant behavior.
[#45337] Objective: use the local official agy CLI and its own login. Every Antigravity chat now runs agy acp (antigravity-acp-launch-spec.ts). Google-account chats use agy's own home. Sign-in runs agy acp --login on the chat host (antigravity-chat-sign-in.ts). The issue suggested the managed runtime as fallback. This PR uses an Orca-owned agy copy where agy is absent. The form differs, but the requested local-CLI path is implemented.
[#46288] Objective: keep picker models consistent with the executing backend. The second program is removed. Catalog and launch both use agy (antigravity-chat-route.ts, antigravity-acp-launch-spec.ts). The mismatch cause no longer exists.
[#46753] Objective: show backend/version and sign-in state for chats on an older server copy, with a hint to start a new chat. The server route is removed. NativeChatAntigravityAuthChip renders from auth state and the detected method. The new ownLogin status drives the note 'This chat keeps agy's own Google login. New chats use <method>.'
[#44498] Objective: managed Chat reaches its local harness under a macOS SOCKS proxy, with no change when no proxy is set. The managed runtime, its harness, and the proxy shim (antigravity-acp-proxy-environment.ts) are deleted, so the reported failure path no longer exists. The PR does not test agy under a SOCKS system proxy. Residual uncertainty: resolution is by removal, not by a verified fix for agy under SOCKS.
[#33188] Objective: the ACP install hang on macOS Intel. The managed download, install, and initialize path is deleted (antigravity-acp-runtime.ts, antigravity-acp-runtime-probe.ts). The reported install path no longer exists. Residual uncertainty: the Orca-owned agy copy on Intel Macs is not tested.
No required coding objective is missing from the reviewed evidence.
Full details: Out of Scope Changes check
Explanation
Most changes follow from removing the pinned server and Orca's separate Google sign-in. These include the deleted runtime, probe, browser helper, proxy shim, token files, sign-in server and session files, chat rules injection, and related renderer components and i18n strings. Deleted tests match the deleted code.
Adjacent changes, each tied to the agy-only flow or disclosed in the PR:
native-credential-backend.ts replaces existsSync with an async stat helper and removes its sync-fs baseline entry. The PR discloses this as a main-thread I/O change.
managedRuntime.remove rejects programs outside current install programs. This follows from removing the managed server.
agy-listing-session-discard.ts supports model-listing session cleanup on agy homes. It serves the agy-only listing path.
homeBeforeFirstTurn, movedAccountHome, and withMovedAccountHome implement the stated rule that a chat without a conversation follows the selected method's home.
GEMINI_API_KEY handling changes on agy's own home. This follows the stated agy 1.5.5 key-provider behavior.
model-catalog probe waits for connection exit (untilExited). The commit message ties it to agy model-list prefetch.
No change was found that is clearly unrelated to the linked issues or the stated server removal.
Full details: Description check
Explanation
The description follows the repository template closely. It has every required section: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk (Level: High), Review, Notes, and Checklist. It explains the mechanism, the before and after behavior, the alternatives considered (#45588 and #46125), and the backout path. Visual proof includes before and after images with a description of each state. Testing lists the platform (macOS), the agy version, the manual and protocol checks, and the items not tested (Windows, real Google sign-in, real SSH host). The Performance section is filled in with a reasoned statement. The AI Disclosure section is left blank, which the template allows for internal contributors, but the author's status is not stated. The Linked Issue section uses 'Fixes' for several issues, which meets the requirement. The Risk section names the affected users and the revert path. Minor gaps: the 'Before' visual proof is described in text rather than attached as a switchable before/after pair, and the AI Disclosure section does not say whether AI tools were used.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Files skipped from review as they are similar to previous changes: 1
src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Stability & Availability · Quick win
Serialize login copies per home, or keep the sweep from deleting a copy in progress.
sweepTemps deletes every file that matches the token temp pattern in the chat home. A copy that has written its temporary file but not yet renamed it can have that file deleted by another copy's sweep. The first copy's rename then fails. It logs a warning and returns without writing the destination, and the launch it served can start without a login or with a stale one.
Nothing in the inspected preparation path serializes copies into one home. The next launch copies the login again, so the effect is transient. Copies into the same home must not remove each other's temporary files. Choose the mechanism: a per-home lock around the sweep, read, write and rename sequence, or a sweep that skips temporary files owned by a live copy.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Do not treat every token read failure as sign-out.
If readFile(target) fails with EACCES or EIO, this converts the error to null. Lines 57–59 then delete an existing usable login copy. A file-store Google chat loses its credentials even though the source token still exists.
Treat only confirmed absence as sign-out. For other read failures, preserve the destination, as the code already does for incomplete JSON.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Ignore sign-in answers that began before the latest sign-in change.
antigravityAgySignIn writes auth from the probe result without checking whether that probe started before the sign-in completed. Invalidation clears the cache but does not cancel a probe that is already in flight, so the waiting caller still receives its old answer. The compatibility path also reads presence before its probe. A signedOut answer can therefore be computed from pre-sign-in credentials and written after the sign-in set auth: 'signedIn'. The stale answer also overwrites lastAgySignIn, so the wrong state remains until the next sign-in check runs.
An answer that started before the latest sign-in change must not update the shared auth or lastAgySignIn. The caller can still receive that answer. The write at line 68 needs a guard that rejects stale observations.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep a separate line buffer for each output stream.
Stdout and stderr share one pending buffer. Node delivers chunks from each stream independently. If agy writes to stderr while a stdout link line is incomplete, the two fragments join into one malformed line, and the sign-in link may never be published. The flow then waits until its deadline and fails. Give each stream its own buffer. Keep the shared tail for error text.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Show the failed sign-in reason on a chat that keeps agy's own login.
For a system-account chat, useNativeChatAgySignIn starts the host sign-in even when the saved method is not Google. When that attempt fails, antigravityChatSignInPrompt returns failed. The strip guard in NativeChatSignInStrip.tsx then returns null because the method is not a Google method. failedLine never renders, and the value that reaches the chat notice carries only signingIn and signIn. The failure reason is not shown in the chat. The user can retry but cannot see why the attempt failed.
Keep the failed-attempt message visible for a chat whose sign-in comes from agy's own login, including after the saved method changes. Keep new non-Google chats free of unrelated Google prompts.
Files skipped from review as they are similar to previous changes: 2
src/renderer/src/i18n/locales/en.json
src/renderer/src/i18n/locales/ko.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Data Integrity & Integration · Heavy lift
Save the login from the sign-in's home before the replacement starts.
When the resolved launch environment sets a different HOME, and agy keeps a file-based login there, the sign-in writes the new login under that HOME. The save that runs before the replacement reads the app home's credential instead. As a result, the login in the launch home can be replaced without being saved, and the saved accounts may not include it. Keyring-backed logins are shared across homes, so the loss applies only to file-store logins.
Make the pre-sign-in save read the same home that the sign-in writes to. Use the launch environment's home for that save, or otherwise keep the saved set aligned with the home the sign-in replaces.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Refresh accounts after the first completed sign-in.
If this section opens without a completed flow, signedInFlow starts as null. On the first successful sign-in, useOnLaterChange records the flow ID but skips reread because it treats the first non-null key as initialization. The account rows still show “Not signed in” until the user refreshes.
Use a completion observer that refreshes for the first successful flow and each later distinct flow. Keep null transitions inactive.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Show sign-in alerts in the active flow panel.
If copying the sign-in link fails, the controls put the failure message in signIn.alert. During an owned flow, this branch passes null to the panel. The other branches that display signInAlert do not render, so the user receives no failure message.
Pass signInAlert as the panel's alert prop. When no error exists, the panel remains unchanged.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Data Integrity & Integration · Quick win
Disable Select while a Google sign-in flow is running.
Sign-in does not set busy. The saved-account Select stays enabled during the flow. If the user selects another saved account while the flow waits, the Google sign-in can finish afterward and replace the login that the selection just switched to. The stored selectedAccountId then stays on the selected account while the active account becomes the account that signed in. Disable Select for the duration of the flow.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Show clipboard failures in the sign-in panel.
If copying the sign-in link fails, this branch shows the normal link label again. The controls hook exposes the failure through signIn.alert, but neither this panel nor the chat strip's ownFlow branch renders that alert.
Render the clipboard failure near the link. Keep the link available for retry and preserve the successful “Copied” state.
Files skipped from review as they are similar to previous changes: 3
src/renderer/src/i18n/locales/en.json
src/renderer/src/i18n/locales/ko.json
src/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Honor startsProgram on the saved-credential branch of readAgySignIn.
When startsProgram is false and a credential is present, readAgySignIn calls checkAntigravityHostAcp without the flag. That check defaults start to true. On a cache miss, it launches agy acp and calls listSessions, which can raise the keyring prompt. The no-start path that the other branch uses does not run here. Pass the flag through so this branch also returns without launching agy.
With startsProgram true, the probe launches as before. With startsProgram false and a cache miss, the check returns 'unanswered', and readAgySignIn returns 'unknown'.
…from Orca
agy now runs every chat. The saved sign-in method alone picks its home: agy's
own home and login for a Google account, or a home Orca owns for Gemini
Enterprise, a Gemini API key or gcloud. Chats Orca's old server started
resume on agy where they are. Orca's managed ACP server, its download and
updates, and Orca's own Google sign-in are removed; Sign in now runs
`agy acp --login` on the host and hands it the pasted code.
…ire server settings
Chats and Settings ask agy's sign-in themselves, so a chat never waits on a
Settings visit to show it. The Google sign-in choice and server auto-update
keys stay accepted for older clients but are no longer read.
…ng agy in from Orca
Settings shows the sign-in method and, for a Google account, agy's own
account with an in-app Sign in that shows Google's link and takes the
pasted code. The composer chip names only the method, without waiting on
the host's install status. The choice between agy's and Orca's Google
sign-in and the terminal-based Sign in are removed.
…y 1.5.5
agy 1.5.5 and later use an inherited key only when their own settings pick a
key provider, so stripping it only broke people who set agy up for a key.
…y sign-in failed
A chat on agy's own home keeps its Google login after the method changes, so
its chip names that and says what new chats use. The chat's sign-in strip
shows agy's reason, such as a code Google refused.
…n in and Add account
Chats now run agy, so a Google-account chat and agy in the terminal share one
login. Settings shows one group: how chats sign in, then agy's Google accounts
with Sign in and Add account run in Orca, then the runtime. Add account saves
the current login first and the new one after.
…n strip
The strip shows a Sign in with Google split button, with what else Orca
found in its menu and one line naming it. While signing in it shows only
the box for Google's code, with a small Cancel and a link to copy the
sign-in page. A refused code returns to the button with the reason.
…od picked from it
A method picked in a chat before its first turn now applies to that chat:
its launch, model list and sign-in notice use the home the method selects,
and the launch records that home as the chat's own. A chat with a
conversation keeps the home its history lives in.
…picker waits
agy starts quickly now that Orca's server is gone, so its model list is
fetched ahead of time instead of only when a picker asks: a new chat's
picker fills in before the session starts. When it can't, the picker says
why: the list is loading, or agy isn't signed in. A listing's throwaway
session is removed only after agy has exited, so agy can't write it back.
…listings
- Changing the sign-in method no longer wipes an agy sign-in under way, and
a flow nothing shows any more still stops agy when it settles.
- A chat or Settings may start agy once to learn it's signed out, so the
sign-in strip shows on a host where agy never signed in.
- A running sign-in shows its code box even if agy last read as signed in.
- Add account refuses to start when the current login can't be saved.
- Switching or adding an account restarts idle chats on Orca's homes too and
forgets their model lists, since Enterprise and old-server chats use
agy's Google login.
- Listings in the retired server's home are cleaned up, and a sign-in
failure there names the chat's method instead of an API key.
…ale agy checks from overwriting a new login
- Settings rereads agy's accounts after the first in-app sign-in, not only later ones.
- A sign-in check that began before a login change no longer replaces the new answer.
- A chat that has history on agy's own login no longer offers a method switch that can't apply to it.
- A chat that hasn't started picks its home with the agent's own environment.
- Gemini Enterprise reads agy's sign-in too, since its chats use agy's Google login.
… signed out
- A login change clears the last check's answer, so a chat doesn't keep the old signed-out notice.
- A chat with history on agy's own login shows no sign-in method offers at all.
- Settings rereads accounts only for sign-ins after it has read the sign-in status.
Reconcile the non-linear upstream v1.4.278 release tree directly from v1.4.278 so release-branch-only commits from v1.4.277 do not carry over.
Adapt antigravity-acp-launch-spec.ts to upstream stablyai#48305 (every chat runs on agy acp): keep compaction and host brain observation (managed: false) on ANTIGRAVITY_AGY_LAUNCH_SPEC, and bind managed: true brain observation on ANTIGRAVITY_AGY_ORCA_HOME_LAUNCH_SPEC so --gemini-dir homes read brain logs under GEMINI_HOME/antigravity-acp/brain.
Keep both upstream instructionsEachStart and fork capabilitiesForAccount in acp-structured-agent-definitions.ts and structured-agent-definition.ts.
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
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.
ELI5
Antigravity chats now always run
agy. Orca no longer has a second program, Google's bundled ACP server, with its own separate Google sign-in. There is one choice, how you sign in, and Sign in signs agy itself in, inside Orca.What Changed
One program, one choice
agy acp: your own agy, or Orca's copy where you have none. The saved sign-in method alone picks where it runs:--gemini-dir). Orca writes the method and project into that home'ssettings.json. Where agy keeps its login in a file (SSH, Linux without a keyring), agy's Google login reaches this home through a private copy.Sign in, in Orca
agy acp --loginon the host, the chat's host for remote chats.agyfor sign-in is gone.What you see
ownLogin, carries that./logoutin a terminal;A WSL location keeps only its accounts, since chats never run there.
movedAccountHome, applied only while the record has no provider handle).Keys and versions
GEMINI_API_KEY: no longer stripped on agy's own home. agy 1.5.5 and later use it only when their own settings pick a key provider (checked on 1.5.5, 1.5.13 and 1.5.16). Before, people who set agy up with a key were sent to the server.Unchanged: the client identity Orca sends to agy.
Older paired clients and hosts
antigravityGoogleSignInandantigravityServerAutoUpdateEnabledstay accepted host-owned keys but are no longer read.program: 'server'for Antigravity is refused rather than removing agy.Why
Most Antigravity reports came from Orca weighing two programs per chat in several places that disagreed:
Fixing each place keeps the decision alive. Removing the second program removes the decision itself.
#45588 built this and was set aside in #46125 to keep a Google sign-in that needs no terminal.
agy acp --loginprovides that now: it prints the link and reads the code from stdin, so Orca drives it in-app, locally and on remote hosts. The design follows #45588's two homes and its login-file copy, rebuilt on current main.Linked Issue
Fixes #45337
Fixes #46288
Fixes #46753
Fixes #44498
Fixes #33188
Refs #45941, #47545, #47664, #44613: the same causes; I couldn't reproduce these reporters' exact setups.
Visual Proof
Hidden dev build, agy 1.5.16. The throwaway home uses a dummy key and a local fake Gemini endpoint. Before: the chip showed "agy's own login" or a backend name, or nothing until the host answered, and Settings had the agy-vs-Orca sign-in choice.
A new chat: the chip names the method 282 ms after opening:

The chip's menu:

After switching to Gemini API key, a chat on agy's own home says it keeps agy's login:

The chat's sign-in strip has one control in each state. Signed out, it shows Sign in with Google, with what else Orca found named underneath and listed in the menu:


Waiting for the code shows the paste box, a small Cancel, and a link to copy the sign-in page:

When Google refuses a code, the strip goes back to the button and says why (dark theme):

Settings › Antigravity: one group, with the method, agy's accounts shared by chats and the terminal, an in-app Add account, and the runtime:

Testing
macOS, hidden dev build, agy 1.5.16 (throwaway home, file login storage, dummy key, local fake Gemini endpoint):
agy acp --gemini-dir <profile>/antigravity-agy-chat --app-data-dir antigravity-acp, lists Gemini 4 and replies. The older chat's chip names agy's login.Protocol checks:
--gemini-dir <that home> --app-data-dir antigravity-acp. Its next model request carried the earlier turn.agy acp --loginprints the same link foroauth-personalandoauth-business.Automated:
pnpm check:changedpasses (43 checks).existsSyncbecame an asyncstat). That shrinks the blocking-helper and sync-fs baselines.Not tested: a real Google sign-in end to end (it would replace my own keychain login), Windows, and a real SSH host.
Performance
Less work than before:
One read: agy's sign-in is read in the background when a chat or Settings subscribes. It uses the existing 5-minute cached check and doesn't block anything.
Risk
Level: High
Who is affected:
What is left on disk:
Backing out:
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Cross-platform:
@orca/process-host; no shell is involved.Mobile: no Antigravity sign-in UI there. Failure copy is unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)