Skip to content

feat(antigravity): keep the server and Orca's sign-in; let Google-account users choose it, refuse chats without their credential, agy Sign in in Settings - #46125

Merged
nwparker merged 7 commits into
mainfrom
nwparker/agy-chat-salvage
Nov 21, 2026
Merged

nwparker merged 7 commits into
mainfrom
nwparker/agy-chat-salvage

Conversation

@nwparker

@nwparker nwparker commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Google's Antigravity server and Orca's own Google sign-in stay. This brings over the parts of #45588 that don't depend on removing them, and fixes one gap: a new user without agy can again choose Orca's built-in Google sign-in instead of installing agy.

Nobody is signed out, and no chat that works today is refused. No saved setting, runtime or sign-in is migrated. The new choice changes only where new chats run, and only when the person picks it; until then it follows what the host already uses.

Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​466 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​466
Prod 28 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​510 $\color{#cf222e}{\Huge{\mathbf{−}}}$​71 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​439

What Changed

  • Choose Orca's built-in Google sign-in without agy.
    • Since feat(antigravity): Install provides the real agy, like Orca's other agent CLIs #45333, a Google-account user with no agy gets agy installed, and Settings has no way to pick Orca's in-app sign-in instead.
    • Settings now has Google account sign-in: agy's own sign-in / Orca's built-in sign-in. It shows in the sign-in form when the method is Google account, or on its own row when new chats are routed to agy (that only happens with the Google account method).
    • It shows only for the Google account method, and only once the host's route has answered (the host reports chatGoogleSignInInUse). It is hidden for other methods, on older hosts, and while the route is unknown.
    • Its label is always the sign-in new chats actually use, by the route. That holds where Orca's server is the route but isn't installed yet or is installing, updating or being removed, and where agy is in use but not installed or signed in:
    • The Select is keyed on the stored value, so any pick that differs from what is stored is saved, even one matching the label. After a pick, Settings reads the host's answer again, queued behind any read already running.
    • "Orca's built-in sign-in" routes new Google-account chats to Orca's server, even past a signed-in agy. Install then installs the server, and the form shows Sign in with Google account, the server's own browser sign-in.
    • "agy's own sign-in" routes them to agy, even where Orca's server is in use.
    • Health and availability re-derive when it changes, as they do for the other backend settings.
  • A Gemini API key chat is refused only where a saved Google login could stand in for its missing key.
    • It is refused when the method is Gemini API key, there is no key (none saved, or the saved one can't be decrypted, and no GEMINI_API_KEY), and a Google login is saved in that chat home. That is the case where the server would fall back to the Google login and bill another account than Settings shows.
    • The chat says "Antigravity isn't signed in. Sign in under Settings → Accounts → Antigravity…" with the reason (no key saved, or the saved key can't be read on this computer), and its Sign in… opens Settings. Settings' own Sign in shows the same reason, not "Google sign-in failed".
    • Never refused:
      • without a saved Google login: the server's own answer stands, as before;
      • Google Agent Platform (gcloud) chats. Their credential lookup (CLOUDSDK_CONFIG and home folders, Windows APPDATA, metadata servers including Windows GCE) can't be mirrored reliably, so the server answers for them, as on main;
      • model listings.
    • The server reads no .env: checked on 1.5.0 and 1.5.2 with a fake key in a .env in both the process folder and the session folder. Both answered "GEMINI_API_KEY environment variable is not set". So a key only in a workspace .env never served a chat before either.
    • Windows environment names are read case-insensitively.
    • Only a notSignedIn refusal keeps its reason through launch preparation; anything else is a start failure, as before.
  • Settings' Sign in for agy, local and remote. When new chats run on agy and agy isn't signed in, the Chat section has Sign in, which runs agy in a terminal. It works on this computer, and on a remote host when the open workspace is on that host; otherwise Settings shows the existing "Run agy on this host" text.
  • agy's executor-error line fails the turn. agy 1.5.13 answers a rejected Gemini API key with ⚠ agent executor error: …, and other turns it couldn't run (quota, a server error) the same way. Before, that line showed as the reply. Now a chunk that is exactly that line ends the turn as failed, with the line as the detail. That includes a long answer whose last chunk is the line. It never marks the account signed out. A reply that only quotes the line, or continues after it, still counts as an answer.
  • Model lists after a method switch. A server listing writes the same account settings a chat start does, after the release is known to list, so the list right after switching method matches the method. A listing skips the credential check and the sign-in link check. It never fails because of the account files: if they can't be prepared (for example gcloud with no project anywhere), the listing goes on as on main. When the settings haven't changed, neither a listing nor a start writes them again.
  • Settings re-reads agy's answer once it has had time. The rows don't wait more than 1.5 s for a cold agy check. When agy hadn't answered yet, Settings reads it again 8 s later. Re-renders don't cancel that. It arms again after agy's answer arrives and then goes missing again. It shows no busy state and no error of its own, and leaves a Usage reading or error on screen.

Not brought over from #45588, and why:

  • Retiring the server, its sign-in, its token handling, and the token copy and link work: the server stays.
  • The capability-based older-host detection: every host still has the server.
  • The 1.5.5 floor and Orca's agy copy standing in for a too-old own agy. Main's floor (1.5.2) is set for agy's own home, which is the only place agy runs chats here, and a too-old agy already sends new chats to Orca's server. The evidence for 1.5.5 was about running agy on Orca's chat home with --gemini-dir, which this PR doesn't do.

Design: how a user without agy picks Orca's sign-in

  • Options considered
    1. A fifth "Sign in with" method.
    2. A new optional field on the saved chat auth ({method: 'oauth-personal', viaOrca: true}).
    3. A separate host-owned setting.
  • Choice: 3, antigravityGoogleSignIn: 'auto' | 'agy' | 'orca'. Absent or auto means today's behavior: the server where Orca's sign-in is in use (a server release, a server on PATH, or a saved Google login), else agy.
    • The saved method stays a strict schema that older Orca versions parse. Options 1 and 2 would make a downgraded or older Orca read the saved method as malformed and stop chats until it is re-saved.
    • Host-owned settings already work for local and remote hosts. Each host reports every key with its fallback, and settings.update is strict, so an older host neither reports nor accepts the key and Settings hides the choice there.
    • The route reads it next to the method. Google account plus orca runs new chats on Orca's server. agy runs them on agy even where the server is in use. auto keeps main's rule.
    • It is a backend setting key (ACP_HOST_BACKEND_SETTING_KEYS) and a health setting (HEALTH_SETTINGS), so the install stream, the catalog choice and availability follow a change at once.
  • Rollback: an older Orca ignores the setting, so a downgrade drops an explicit pick. A host whose user picked Orca's sign-in past a signed-in agy goes back to agy, and an explicit agy goes back to the server where it is in use. Once the server is installed or Orca's Google sign-in is saved, main's route already prefers the server unless agy is signed in, so chats keep running.

Verification

  • Unit tests that fail on revert:
    • the route:
      • runs Google-account chats on the server with orca, and on a signed-in agy without it;
      • keeps a host signed in through Orca on the server under auto, and moves it to agy only with agy;
    • the dropdown shows the sign-in the host answers is in use;
    • Settings' Sign in shows the reason for a missing key and for an undecryptable key;
    • a listing whose account files can't be prepared still lists;
    • the host-owned setting is read with its auto fallback, and reads as unsupported when not reported;
    • availability re-derives when the choice changes;
    • the host's Google sign-in in use: agy for every agy route state, Orca's for the server whether installed or not, none for other methods;
    • the choice: labels the sign-in in use while nothing is picked, and saves a pick that differs from what is stored;
    • credentials:
      • a key chat without a key and no saved login launches;
      • a missing key plus a saved Google login is refused, and an undecryptable key says so;
      • gcloud is never refused;
      • Windows names are matched case-insensitively;
      • the notSignedIn refusal survives launch preparation;
    • the executor-error line and its negative cases;
    • the listing writing settings first, and never refusing;
    • the re-check firing once, retrying when busy, cancelling, re-arming, and stopping on unmount.
  • Gates: pnpm check:changed --related 43/43 passed at ead7584 (on main a74a478); the react-compiler baseline changes only this section's own line; check-main-blocking-helper-ratchet.mjs OK, pnpm check:main-sync-fs-ratchet OK.
  • Real app (ORCA_BACKGROUND_LAUNCH=1, throwaway profiles and homes, gcloud through a 0600 ADC copy deleted afterwards). Round 2 is after the review fixes.
    1. Upgrade, signed in through Orca's sign-in on the server (profile from the current release: server 1.5.0, Google Agent Platform, a chat told "walnut-17"). Round 2: the chat answered "walnut-17", and Settings shows "Signed in" with Change account.
    2. Same, with the Google account method and a saved Google token: Settings reads "Google account sign-in: Orca's built-in sign-in", "Signed in", runtime unchanged.
      2b. Round 3: Orca's server installed, an Orca Google login saved, and agy signed in (the [Bug]: Antigravity managed ACP backend (1.5.0) causes missing Orchestrator models and quota mismatch with host agy CLI #44613 case).
      • Settings said "New chats run on your agy (v1.5.13)…", and the choice read "agy's own sign-in".
      • Picking "Orca's built-in sign-in" took effect: the description became "Signs in through your browser…" and the choice read "Orca's built-in sign-in".
    3. Upgrade, on the user's own agy (agy 1.5.13, a chat told "cedar-88"). Round 2: the chat answered "cedar-88". Settings shows the choice on its own row on "agy's own sign-in", plus agy's Sign in (agy has no saved login there; it authenticates through gcloud).
    4. gcloud with no ADC file and no saved login: the chat launched, and the server answered with its own "could not find default credentials" error, as on main. Orca refused nothing. (Round 4 removed the gcloud refusal altogether.)
    5. Gemini API key with no key, plus a saved Google login: the new bot's chat was refused before launch with "Antigravity isn't signed in…" and the no-key reason, plus Sign in….
      6b. Round 4, fresh computer, no agy, no install in between:
      • the choice read "agy's own sign-in", with "Install agy below…";
      • picking "Orca's built-in sign-in" showed "Signs in through your browser…" and the choice read Orca's, while the server is not installed;
      • picking "agy's own sign-in" went back to "Install agy below…" and the choice read agy's.
    6. Fresh computer, no agy (round 1):
      • the choice showed "agy's own sign-in";
      • choosing "Orca's built-in sign-in" switched the description to "Signs in through your browser…";
      • Install installed Orca's server, and the form showed Sign in with Google account (not pressed).

Not proven: a real Google or Gemini Enterprise browser sign-in, and remote hosts (covered by the host-owned setting's existing remote path).

Visual Proof

Round 4, fresh computer without agy, with no install in between: the choice follows the route both ways:

fresh agy

picked orca not installed

back to agy

After the review fixes (round 2):

Round 3: Orca's server in use and agy signed in, so new chats run on agy. The choice reads "agy's own sign-in", and picking Orca's takes effect:

agy in use

picked orca

A Google-account profile signed in through Orca's sign-in on the server. The choice reads "Orca's built-in sign-in":

google orca shown

Upgrade, signed in through Orca's sign-in on the server (gcloud): the chat still remembers:

orca sign-in chat r2

Upgrade on the user's own agy: the chat remembers, and Settings has the choice plus agy's Sign in:

own agy chat r2

own agy settings r2

gcloud with no ADC file and no saved login: launched; the server's own error, as before:

gcloud no adc

Gemini API key with no key while a Google login is saved: refused before launch:

key missing google saved

Round 1, fresh computer without agy: before, after choosing Orca's sign-in, and after Install:

fresh no agy

chose orca

orca sign-in ready

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes add a host-scoped Google sign-in setting and use it to select between Antigravity and Orca routing. Chat preparation checks applicable API-key credentials, while ACP model listing prepares account files with a listing purpose. The renderer adds sign-in controls and schedules background account rereads while status remains unanswered.

Merge Risk: Low · up to ead75

The change adds a Google sign-in choice and routing between agy and Orca's server, and refuses chats that lack a needed credential. Remaining concerns are narrow edge cases: model listings can go stale after a method switch, usage can stay attributed to the previous account, and disabling managed agy can override an explicit agy choice. Each has a safe fallback, so the change is mergeable with owner awareness.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title is in conventional-commit form and names the main change: a host-owned Google sign-in choice for Antigravity chats, plus credential refusal and agy sign-in in Settings. The changeset impleme…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title is in conventional-commit form and names the main change: a host-owned Google sign-in choice for Antigravity chats, plus credential refusal and agy sign-in in Settings. The changeset implements all of these. The title is long (153 characters) and bundles several sub-features, but it still describes real, primary changes, so it passes.

  • 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: 4d9e034f-4a83-4295-af2b-9dc808efda24
Commits

Reviewing files that changed from the base of the PR and between bc08855 and ead7584.

Files selected for processing: 9

  • src/main/antigravity/antigravity-chat-credential.test.ts
  • src/main/antigravity/antigravity-chat-credential.ts
  • src/main/antigravity/antigravity-sign-in-failure.test.ts
  • src/main/runtime/rpc/methods/accounts/antigravity-chat-backend.ts
  • src/main/runtime/rpc/methods/accounts/antigravity-google-sign-in-in-use.test.ts
  • src/renderer/src/components/provider-accounts/AntigravityGoogleSignInChoice.test.tsx
  • src/renderer/src/components/provider-accounts/AntigravityGoogleSignInChoice.tsx
  • src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
  • src/shared/agent-accounts/antigravity/antigravity-account-types.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 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: 2

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: dea7c779-1147-4fe3-a988-db722020ddd8
Commits

Reviewing files that changed from the base of the PR and between 63dbe28 and 3cdbdc0.

Files selected for processing: 25

  • config/react-compiler-bailout-baseline.txt
  • src/main/acp/acp-dialects/antigravity-dialect-notice.test.ts
  • src/main/acp/acp-dialects/antigravity-dialect.ts
  • src/main/acp/discovery/acp-listing-account.test.ts
  • src/main/acp/discovery/acp-listing-account.ts
  • src/main/acp/discovery/acp-model-catalog-probe.ts
  • src/main/acp/launch/acp-launch-contract.ts
  • src/main/acp/launch/acp-launch-preparation-refusal.test.ts
  • src/main/acp/launch/acp-structured-launch-preparation.ts
  • src/main/antigravity/antigravity-chat-account.ts
  • src/main/antigravity/antigravity-chat-credential.test.ts
  • src/main/antigravity/antigravity-chat-credential.ts
  • src/main/antigravity/antigravity-chat-route.ts
  • src/main/antigravity/antigravity-google-sign-in-choice.test.ts
  • src/main/runtime/construction/runtime-store-contract.ts
  • src/renderer/src/components/provider-accounts/AntigravityAgySignInButton.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatAuthForm.tsx
  • src/renderer/src/components/provider-accounts/AntigravityGoogleSignInChoice.tsx
  • src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
  • src/renderer/src/components/settings/accounts/providers/use-recheck-once.test.ts
  • src/renderer/src/components/settings/accounts/providers/use-recheck-once.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/settings/antigravity-google-sign-in-setting.test.ts
  • src/shared/settings/global-settings-types.ts
  • src/shared/settings/host-owned-settings.ts

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

Comment on lines +121 to +123
await prepareAcpListingAccount(spec, env, antigravityChatAuth, () =>
assertStructuredAgentResolutionCurrent(operation)
)

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

Expire antigravity model listings when the Google-account method changes.

antigravityChatAuth is not part of the probe identity, the input stamp, or the settings-expiry mapping. After a successful listing for gemini-api-key, switching to agent-platform with the same executable and workspace can keep the previous method's models. The account preparation at acp-model-catalog-probe.ts:121-123 then does not run for that listing.

Changes to the Google-account method must invalidate the antigravity model-listing scope, so the next catalog read rediscovers models under the new account. Add that invalidation where the other account settings are expired. Keep the expiry scoped to antigravity listings.

…in, never on GCE or listings; show the sign-in in use; re-derive availability on the choice

@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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Clear the retained usage when a background read reports a… · AntigravityAccountsSection.tsx:142

src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx:142
Minor · Functional Correctness · Quick win

Clear the retained usage when a background read reports a different account.

The background recheck passes keepShown to run, so it keeps the usage value from the earlier usage read. The recheck then sets state to the list result without checking whether currentAccount still matches the account that the reading was taken for. If agy changes accounts during the settling window, the active row can keep showing the previous account's reading in its refresh button label and error text. The Usage path already requires the same account before it accepts a reading, so the retained value no longer matches the account it is shown for.

Clear usage when the account returned by the background read differs from the account the reading was taken for. Keep usage when the identity is unchanged.

Locations: AntigravityAccountsSection.tsx:142-145 and AntigravityTerminalAccountRows.tsx:52,153,182.

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: bd69bc6d-8ced-4cd1-af64-d2dc861ce81e
Commits

Reviewing files that changed from the base of the PR and between 3cdbdc0 and d911a30.

Files selected for processing: 22

  • config/react-compiler-bailout-baseline.txt
  • src/main/acp/discovery/acp-listing-account.test.ts
  • src/main/acp/discovery/acp-listing-account.ts
  • src/main/acp/discovery/acp-model-catalog-probe.ts
  • src/main/acp/launch/acp-account-binding.ts
  • src/main/acp/launch/acp-structured-launch-preparation.ts
  • src/main/antigravity/antigravity-chat-account.ts
  • src/main/antigravity/antigravity-chat-credential.test.ts
  • src/main/antigravity/antigravity-chat-credential.ts
  • src/main/antigravity/antigravity-chat-route.ts
  • src/main/antigravity/antigravity-chat-saved-sign-in.ts
  • src/main/antigravity/antigravity-google-sign-in-choice.test.ts
  • src/main/antigravity/antigravity-saved-google-token.ts
  • src/main/runtime/agent-session/launch/structured-agent-availability-settings.test.ts
  • src/main/runtime/agent-session/launch/structured-agent-availability.ts
  • src/renderer/src/components/provider-accounts/AntigravityChatAuthForm.tsx
  • src/renderer/src/components/provider-accounts/AntigravityGoogleSignInChoice.tsx
  • src/renderer/src/components/provider-accounts/antigravity-google-sign-in-shown.test.ts
  • src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
  • src/shared/settings/antigravity-google-sign-in-setting.test.ts
  • src/shared/settings/global-settings-types.ts
  • src/shared/settings/host-owned-settings.ts

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

Comment on lines +47 to +49
onGoogleCloud ??= readProductName().then(
(name) => name.includes('Google'),
() => false

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 · Heavy lift

Do not refuse Windows GCE chats because the Linux DMI probe failed.

On a Windows GCE host, plausibleMetadataCredentials reads /sys/class/dmi/id/product_name. That file does not exist on Windows, so the read fails and the probe caches false for the process lifetime. With no ADC file and no GCE_METADATA_HOST, adcMayResolve returns false. If the chat home has a saved Google login, assertAntigravityChatCredential refuses the chat start. The PR states that GCE is never refused, so this refusal contradicts that rule. Compute Engine instances expose a metadata server on any operating system, and Google ADC can use it when no credential file exists.

The probe must not report "not GCE" when it cannot classify the host. Define the behavior for an unknown result explicitly. Allowing the start on an unknown result can use the saved Google account, so that choice needs to be made deliberately. Keep the refusal for hosts where neither ADC nor metadata credentials are available.

…answers; Settings' Sign in names a missing key or gcloud login; listings never fail on account files

@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: 3

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Honor the explicit agy choice for an installed user-owned agy. · antigravity-chat-route.ts:107

src/main/antigravity/antigravity-chat-route.ts:107
Minor · Functional Correctness · Quick win

Honor the explicit agy choice for an installed user-owned agy.

If antigravityManagedAgyEnabled is false, this branch overrides antigravityGoogleSignIn === 'agy'. When the user's agy is installed but signed out, ready becomes false and the route selects Orca's server. A saved Orca login can then serve chats despite the explicit agy choice.

Let an explicitly selected, installed user-owned agy reach the normal signed-out handling. Keep the managed-copy restriction and the existing auto fallback.

The PR objective specifies that an explicit agy choice routes new Google-account chats to agy.

Nitpick comments: 1

src/main/antigravity/antigravity-sign-in-failure.test.ts: 1

37-37: Trivial · Maintainability & Code Quality · Quick win

Test refusal forwarding without credential-discovery fixtures.

These assertions couple the failure mapper to filesystem setup, credential detection, and production message text. The fallback assertion also takes its expected value from the production constant.

Replace these copy checks with one directly constructed AgentSessionAcquisitionRefusal that has reason notSignedIn and a literal sentinel message. Assert that the mapper returns that literal. This still fails when the new branch is reverted and removes the unrelated fixture dependencies.

Based on learnings, tests must run at the layer that owns the behavior and must not test copy or constants.

Also applies to: 43-44

Source: Learnings

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: 0ad74902-fc5a-457e-bdb2-85de82e3de63
Commits

Reviewing files that changed from the base of the PR and between d911a30 and bc08855.

Files selected for processing: 14

  • src/main/acp/acp-dialects/antigravity-dialect.ts
  • src/main/acp/discovery/acp-listing-account.test.ts
  • src/main/acp/discovery/acp-listing-account.ts
  • src/main/antigravity/antigravity-chat-auth-detect.ts
  • src/main/antigravity/antigravity-chat-route.ts
  • src/main/antigravity/antigravity-chat-saved-sign-in.ts
  • src/main/antigravity/antigravity-sign-in-failure.test.ts
  • src/main/antigravity/antigravity-sign-in-failure.ts
  • src/main/antigravity/antigravity-sign-in-server.ts
  • src/renderer/src/components/provider-accounts/AntigravityChatAuthForm.tsx
  • src/renderer/src/components/provider-accounts/AntigravityChatSignInRow.tsx
  • src/renderer/src/components/provider-accounts/AntigravityGoogleSignInChoice.tsx
  • src/renderer/src/components/provider-accounts/antigravity-google-sign-in-shown.test.ts
  • src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
Files with no reviewable changes: 1

  • src/main/antigravity/antigravity-chat-saved-sign-in.ts

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

if (state?.chatUsesAgy === undefined) {
return undefined
}
return state.chatUsesAgy ? 'agy' : 'orca'

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

Treat signed-out agy as the agy route.

When the host returns chatUsesAgy=false and chatAgySignedOut=true, new chats still require agy. This helper returns orca, so the dropdown displays Orca’s built-in sign-in beside the instruction to sign in to agy.

Include chatAgySignedOut in the input contract. Return agy when that flag is true. Keep orca for an explicit server answer and undefined for an unanswered host. Add the signed-out case to the helper test.

// Chats here run on agy, which only the Google account method does; Orca's sign-in is the
// way to run them on Orca's server instead.
<>
<AntigravityGoogleSignInChoice owner={owner} inUse="agy" changed={reread} standalone />

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 infer the agy route from a hidden provider form.

If the runtime snapshot has source=null, antigravityProviderSignInShown returns false even when the saved choice is orca. This branch then displays “agy’s own sign-in.” The value remains agy after a successful reread because it is hardcoded.

Use the host’s route answer when available. If no runtime exists, preserve the explicit saved choice rather than asserting that chats use agy.

… login is saved; the Google choice follows the route and saves any differing pick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant