Skip to content

feat(antigravity): run every chat on agy, with one sign-in choice and an in-app agy sign-in - #48305

Merged
AmoabaKelvin merged 14 commits into
mainfrom
feat/antigravity-agy-only
Nov 25, 2026
Merged

AmoabaKelvin merged 14 commits into
mainfrom
feat/antigravity-agy-only

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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.

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:
new chat

The chip's menu:
chip menu

After switching to Gemini API key, a chat on agy's own home says it keeps agy's login:
keeps own 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:
signed out
menu

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

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

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

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)

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

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.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed 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 Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 70603db7-64d6-4b6d-9bfe-8a72feeb4481
Commits

Reviewing files that changed from the base of the PR and between 5c5dca4 and 0724d73.

Files selected for processing: 11

  • mobile/src/i18n/locales/en.json
  • mobile/src/session/native-chat/input/session-options/native-chat-session-option-copy.ts
  • src/main/antigravity/antigravity-acp-launch-spec.ts
  • src/main/native-chat/agent-model-catalog/agent-model-catalog-probe-runner.ts
  • src/renderer/src/components/native-chat/session/options/controls/native-chat-session-option-labels-text.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/agent-session/options/structured-agent-session-options.ts
  • src/shared/agent-session/options/view/structured-agent-session-model-placeholder.ts
  • src/shared/agent-session/options/view/structured-agent-session-option-snapshot.ts
  • src/shared/native-chat/input/native-chat-session-options.ts
  • src/shared/native-chat/input/session-options/native-chat-session-option-labels.ts
Files with no reviewable changes: 1

  • src/main/antigravity/antigravity-acp-launch-spec.ts
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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ac89fab6-12f6-4bf5-998d-95200454490a
Commits

Reviewing files that changed from the base of the PR and between 2982744 and 4e6e425.

Files selected for processing: 91

  • config/main-blocking-helper-baseline.txt
  • src/main/acp/launch/acp-launch-contract.ts
  • src/main/acp/launch/acp-structured-launch-resolution.ts
  • src/main/acp/session/acp-structured-agent-definitions.ts
  • src/main/acp/text-task/acp-text-task.ts
  • src/main/antigravity/agy-listing-session-discard.ts
  • src/main/antigravity/agy-login-copy.ts
  • src/main/antigravity/antigravity-acp-environment-sanitizer.ts
  • src/main/antigravity/antigravity-acp-environment.ts
  • src/main/antigravity/antigravity-acp-launch-spec.ts
  • src/main/antigravity/antigravity-acp-proxy-environment.ts
  • src/main/antigravity/antigravity-acp-runtime-probe.ts
  • src/main/antigravity/antigravity-acp-runtime.ts
  • src/main/antigravity/antigravity-acp-server-updates.test.ts
  • src/main/antigravity/antigravity-agy-orca-home-credential.test.ts
  • src/main/antigravity/antigravity-agy-orca-home-credential.ts
  • src/main/antigravity/antigravity-agy-orca-home-environment.ts
  • src/main/antigravity/antigravity-agy-orca-home-version.test.ts
  • src/main/antigravity/antigravity-agy-orca-home.test.ts
  • src/main/antigravity/antigravity-agy-orca-home.ts
  • src/main/antigravity/antigravity-browser-helper.ts
  • src/main/antigravity/antigravity-chat-account.ts
  • src/main/antigravity/antigravity-chat-auth-detect.ts
  • src/main/antigravity/antigravity-chat-credential.ts
  • src/main/antigravity/antigravity-chat-route.ts
  • src/main/antigravity/antigravity-chat-rules.ts
  • src/main/antigravity/antigravity-chat-saved-sign-in.ts
  • src/main/antigravity/antigravity-chat-sign-in.ts
  • src/main/antigravity/antigravity-host-acp.ts
  • src/main/antigravity/antigravity-listing-session.ts
  • src/main/antigravity/antigravity-saved-google-token.ts
  • src/main/antigravity/antigravity-sign-in-callback.test.ts
  • src/main/antigravity/antigravity-sign-in-callback.ts
  • src/main/antigravity/antigravity-sign-in-failure.ts
  • src/main/antigravity/antigravity-sign-in-home.ts
  • src/main/antigravity/antigravity-sign-in-models.ts
  • src/main/antigravity/antigravity-sign-in-server.ts
  • src/main/antigravity/antigravity-sign-in-session-files.ts
  • src/main/antigravity/antigravity-sign-in-url.test.ts
  • src/main/antigravity/antigravity-sign-in-url.ts
  • src/main/native-chat/agent-session-wire/observations/structured-agent-session-status-summary-equality.ts
  • src/main/native-chat/agent-session-wire/observations/structured-agent-session-status-summary.ts
  • src/main/native-chat/agent-session-wire/providers/structured-agent-definition.ts
  • src/main/runtime/agent-session/launch/structured-agent-availability.ts
  • src/main/runtime/rpc/methods/accounts/antigravity-accounts.ts
  • src/main/runtime/rpc/methods/accounts/antigravity-chat-backend.ts
  • src/main/runtime/rpc/methods/host-management/managed-runtime-install.ts
  • src/renderer/src/components/agent/launch-settings/AgentChatChoiceControls.tsx
  • src/renderer/src/components/bots/BotSetupInstall.tsx
  • src/renderer/src/components/native-chat/antigravity-auth/NativeChatAntigravityAuth.fixture.tsx
  • src/renderer/src/components/native-chat/antigravity-auth/NativeChatAntigravityAuthChip.tsx
  • src/renderer/src/components/native-chat/antigravity-auth/NativeChatAntigravityAuthRecovery.tsx
  • src/renderer/src/components/native-chat/antigravity-auth/antigravity-auth-words.ts
  • src/renderer/src/components/native-chat/antigravity-auth/antigravity-chat-auth-choices.ts
  • src/renderer/src/components/native-chat/antigravity-auth/native-chat-antigravity-auth.tsx
  • src/renderer/src/components/native-chat/host-access/NativeChatInstallSlot.tsx
  • src/renderer/src/components/native-chat/host-access/NativeChatSignInStrip.tsx
  • src/renderer/src/components/native-chat/host-access/native-chat-agy-sign-in.ts
  • src/renderer/src/components/native-chat/host-access/native-chat-host-setup.ts
  • src/renderer/src/components/native-chat/host-access/native-chat-sign-in-notice.ts
  • src/renderer/src/components/native-chat/messages/notices/use-native-chat-structured-pane-notices.ts
  • src/renderer/src/components/native-chat/session/status/structured-agent-session-status-hooks.ts
  • src/renderer/src/components/provider-accounts/AntigravityAgySignInButton.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatApiKeyField.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatAuthForm.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInAction.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInRow.tsx
  • src/renderer/src/components/provider-accounts/AntigravityGoogleSignInChoice.tsx
  • src/renderer/src/components/provider-accounts/AntigravityProviderSignInArea.tsx
  • src/renderer/src/components/provider-accounts/antigravity-chat-runtime-sign-in-policy.test.ts
  • src/renderer/src/components/provider-accounts/antigravity-chat-runtime-sign-in-policy.ts
  • src/renderer/src/components/provider-accounts/antigravity-server-account-row.test.ts
  • src/renderer/src/components/provider-accounts/antigravity-server-account-row.ts
  • src/renderer/src/components/provider-accounts/use-antigravity-chat-sign-in.ts
  • src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
  • src/renderer/src/components/settings/accounts/providers/use-recheck-once.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/runtime/provider-accounts/sign-in/antigravity-chat-sign-in-status.ts
  • src/shared/agent-session/agent-session-wire.ts
  • src/shared/settings/global-settings-types.ts
  • src/shared/settings/host-owned-settings.ts
Files with no reviewable changes: 31

  • config/main-blocking-helper-baseline.txt
  • src/main/acp/text-task/acp-text-task.ts
  • src/main/antigravity/antigravity-acp-environment.ts
  • src/main/antigravity/antigravity-acp-proxy-environment.ts
  • src/main/antigravity/antigravity-acp-runtime.ts
  • src/main/antigravity/antigravity-acp-server-updates.test.ts
  • src/main/antigravity/antigravity-agy-orca-home-credential.test.ts
  • src/main/antigravity/antigravity-agy-orca-home-credential.ts
  • src/main/antigravity/antigravity-agy-orca-home-version.test.ts
  • src/main/antigravity/antigravity-browser-helper.ts
  • src/main/antigravity/antigravity-chat-rules.ts
  • src/main/antigravity/antigravity-chat-saved-sign-in.ts
  • src/main/antigravity/antigravity-listing-session.ts
  • src/main/antigravity/antigravity-saved-google-token.ts
  • src/main/antigravity/antigravity-sign-in-callback.test.ts
  • src/main/antigravity/antigravity-sign-in-callback.ts
  • src/main/antigravity/antigravity-sign-in-home.ts
  • src/main/antigravity/antigravity-sign-in-models.ts
  • src/main/antigravity/antigravity-sign-in-server.ts
  • src/main/antigravity/antigravity-sign-in-session-files.ts
  • src/renderer/src/components/native-chat/antigravity-auth/antigravity-chat-auth-choices.ts
  • src/renderer/src/components/provider-accounts/AntigravityAgySignInButton.tsx
  • src/renderer/src/components/provider-accounts/AntigravityGoogleSignInChoice.tsx
  • src/renderer/src/components/provider-accounts/AntigravityProviderSignInArea.tsx
  • src/renderer/src/components/provider-accounts/antigravity-chat-runtime-sign-in-policy.test.ts
  • src/renderer/src/components/provider-accounts/antigravity-server-account-row.test.ts
  • src/renderer/src/components/provider-accounts/antigravity-server-account-row.ts
  • src/renderer/src/components/settings/accounts/providers/use-recheck-once.ts
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

async function sweepTemps(folder: string): Promise<void> {
const names = await readdir(folder).catch(() => [])
await Promise.all(
names.filter((name) => TEMP.test(name)).map((name) => rm(join(folder, name), { force: true }))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

try {
await sweepTemps(folder)
const entry = await lstat(file).catch(() => null)
const login = google ? wholeLogin(await readFile(target).catch(() => null)) : null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

const auth = answer === 'signedIn' || answer === 'signedOut' ? answer : null
const shown = antigravityChatSignIn.get().value
if (auth && shown.auth !== auth) {
antigravityChatSignIn.set({ ...shown, auth })

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

const read = (chunk: Buffer | string): void => {
const text = chunk.toString()
tail = (tail + text).slice(-OUTPUT_TAIL_CHARS)
pending += text

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

Suggested fix

--- "a/src/main/antigravity/antigravity-chat-sign-in.ts"
+++ "b/src/main/antigravity/antigravity-chat-sign-in.ts"
@@ -125,20 +125,22 @@
   signal.throwIfAborted()
   const agy = spawnProcess({ program: command, args: ['acp', '--login'], env, stdio: 'pipe' })
   current.agy = agy
   let tail = ''
-  let pending = ''
-  const read = (chunk: Buffer | string): void => {
-    const text = chunk.toString()
-    tail = (tail + text).slice(-OUTPUT_TAIL_CHARS)
-    pending += text
-    const lines = pending.split(/\r?\n/)
-    pending = lines.pop() ?? ''
-    for (const line of lines) {
-      receiveLine(current, line)
-    }
-  }
-  agy.stdout.on('data', read)
-  agy.stderr.on('data', read)
+  const lineReader = (): ((chunk: Buffer | string) => void) => {
+    let pending = ''
+    return (chunk) => {
+      const text = chunk.toString()
+      tail = (tail + text).slice(-OUTPUT_TAIL_CHARS)
+      pending += text
+      const lines = pending.split(/\r?\n/)
+      pending = lines.pop() ?? ''
+      for (const line of lines) {
+        receiveLine(current, line)
+      }
+    }
+  }
+  agy.stdout.on('data', lineReader())
+  agy.stderr.on('data', lineReader())
   agy.stdin.on('error', () => {})
   const stop = (): void => {
     agy.kill()

Comment on lines +47 to +49
return prompt === 'signingIn' || isAntigravityGoogleMethod(method)
? { prompt, view, agent, host }
: null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

@AmoabaKelvin
AmoabaKelvin force-pushed the feat/antigravity-agy-only branch from 4e6e425 to 7cc82b5 Compare November 24, 2026 17:25

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f454ea80-933f-407d-b8fc-15360a803da8
Commits

Reviewing files that changed from the base of the PR and between 4e6e425 and 7cc82b5.

Files selected for processing: 26

  • config/main-blocking-helper-baseline.txt
  • config/main-sync-fs-baseline.txt
  • src/main/antigravity/antigravity-chat-sign-in.ts
  • src/main/antigravity/native-credential-backend.ts
  • src/main/runtime/rpc/methods/accounts/antigravity-accounts.ts
  • src/renderer/src/components/native-chat/host-access/NativeChatSignInStrip.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatAuthRows.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInAction.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInFlowPanel.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInRow.tsx
  • src/renderer/src/components/provider-accounts/use-antigravity-chat-sign-in.ts
  • src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
  • src/renderer/src/components/settings/accounts/providers/AntigravityAgyAccountRows.fixture.tsx
  • src/renderer/src/components/settings/accounts/providers/AntigravityAgyAccountRows.tsx
  • src/renderer/src/components/settings/accounts/providers/use-antigravity-account-run.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 12

  • config/main-sync-fs-baseline.txt
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInAction.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInRow.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
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.

Comment on lines +111 to +117
const shellEnv = await resolveHostStructuredAgentLaunchEnvironment('antigravity', settings)
const input = await acpHostBackendInput(
ANTIGRAVITY_LAUNCH_SPEC,
shellEnv,
getProfileUserDataPath(),
settings
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

</>
// Signing in or adding an account changes agy's login, which the account rows read again.
const signedInFlow = signIn.flow?.phase === 'signedIn' ? signIn.flow.flowId : null
useOnLaterChange(signedInFlow, reread)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

<div key="signing-in" data-settings-row="" className="py-3">
<AntigravityChatSignInFlowPanel
signIn={signIn}
alert={null}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

size="xs"
variant="outline"
disabled={busy || signIn.signInDisabled}
onClick={signIn.addAccount}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

Suggested fix

-              selectDisabled={busy}
+              selectDisabled={busy || signingIn}

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: afbcb10b-7aa0-4422-88f6-d460e8cf437b
Commits

Reviewing files that changed from the base of the PR and between 7cc82b5 and bd2a434.

Files selected for processing: 33

  • src/main/acp/launch/acp-launch-contract.ts
  • src/main/acp/launch/acp-launch-home-before-first-turn.ts
  • src/main/acp/launch/acp-structured-launch-resolution.ts
  • src/main/acp/session/acp-structured-acquire.ts
  • src/main/antigravity/antigravity-acp-launch-spec.ts
  • src/main/antigravity/antigravity-sign-in-failure.ts
  • src/main/native-chat/agent-session-wire/acquisition/structured-agent-session-acquisition.ts
  • src/main/native-chat/agent-session-wire/observations/structured-agent-session-status-summary.ts
  • src/main/native-chat/agent-session-wire/providers/structured-agent-session-adapter.ts
  • src/main/runtime/agent-session/installation/structured-agent-runtime-metadata.ts
  • src/main/runtime/agent-session/installation/structured-agent-runtime-registration-types.ts
  • src/main/runtime/agent-session/ownership/agent-session-owner-proof.test.ts
  • src/main/runtime/agent-session/ownership/agent-session-owner-proof.ts
  • src/main/runtime/agent-session/records/agent-session-record-command.ts
  • src/main/runtime/session-tabs/chat/structured-session-account-home.ts
  • src/renderer/src/components/native-chat/antigravity-auth/NativeChatAntigravityAuthChooser.tsx
  • src/renderer/src/components/native-chat/antigravity-auth/NativeChatAntigravitySignInButton.tsx
  • src/renderer/src/components/native-chat/antigravity-auth/antigravity-auth-words.ts
  • src/renderer/src/components/native-chat/host-access/NativeChatSignInStrip.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInFlowPanel.tsx
  • src/renderer/src/components/provider-accounts/use-antigravity-chat-sign-in.ts
  • src/renderer/src/components/settings/accounts/providers/AntigravityAgyAccountRows.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 12

  • src/renderer/src/components/native-chat/antigravity-auth/NativeChatAntigravityAuthChooser.tsx
  • src/renderer/src/components/settings/accounts/providers/AntigravityAgyAccountRows.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 2

  • src/main/antigravity/antigravity-sign-in-failure.ts
  • 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; 3 remain after this review.

Comment on lines +131 to +133
{signIn.copy.status === 'copied'
? t('accounts.antigravity.chatCopied', 'Copied')
: t('accounts.antigravity.chatCopySignInLink', 'Copy the sign-in link')}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

@AmoabaKelvin
AmoabaKelvin force-pushed the feat/antigravity-agy-only branch from bd2a434 to 5c5dca4 Compare November 24, 2026 21:57

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8f03b439-3613-4ffc-972f-764960bca3b5
Commits

Reviewing files that changed from the base of the PR and between bd2a434 and 5c5dca4.

Files selected for processing: 13

  • src/main/antigravity/antigravity-acp-launch-spec.ts
  • src/main/antigravity/antigravity-chat-route.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 8

  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
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.

export async function antigravityAgySignIn(
input: AcpHostBackendInput
): Promise<AntigravityAgySignIn> {
const answer = await readAgySignIn(input)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

Suggested fix

--- a/src/main/antigravity/antigravity-host-acp.ts
+++ b/src/main/antigravity/antigravity-host-acp.ts
@@
 export function checkAntigravityHostAcp(
   command: string,
   env: Record<string, string>,
   envToDelete: string[],
-  now: () => number = Date.now
+  now: () => number = Date.now,
+  start = true
 ): Promise<AntigravityHostAcpAnswer> {
-  return askAntigravityHostAcp(command, env, envToDelete, now, true)
+  return askAntigravityHostAcp(command, env, envToDelete, now, true, start)
 }
--- a/src/main/antigravity/antigravity-chat-route.ts
+++ b/src/main/antigravity/antigravity-chat-route.ts
@@
-  const answer = await checkAntigravityHostAcp(command, env, envToDelete)
+  const answer = await checkAntigravityHostAcp(
+    command,
+    env,
+    envToDelete,
+    Date.now,
+    input.startsProgram
+  )

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.
@AmoabaKelvin
AmoabaKelvin force-pushed the feat/antigravity-agy-only branch from 4496e8e to 2ec2901 Compare November 25, 2026 02:00
@AmoabaKelvin
AmoabaKelvin merged commit d7811d7 into main Nov 25, 2026
59 of 61 checks passed
pythonberg1997 added a commit to pythonberg1997/orca that referenced this pull request Nov 26, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment