Repository navigation
feat(settings): sign Antigravity chats in from Accounts - #28705
Conversation
|
Antigravity chats need their own Google sign-in, but Accounts previously only managed terminal Review fixed late replies that could open a browser after leaving Accounts or follow an older cancelled attempt, and removed the dependency on terminal-account loading. Late browser/Cancel errors now stay with their attempt. The row stays hidden on unsupported hosts, remote targets and WSL. Minor terminal/chat grouping copy polish is deferred. Two review rounds, final readiness and a separate performance pass found no remaining substantive issue. Ten targeted tests, the scoped web typecheck and all required GitHub CI checks passed at Hidden M4Air checks used isolated data, a fake ACP server and intercepted URL opening: main/base omit the row; waiting/copy/cancel, synthetic completion, saved-on-reopen and replacement passed. Real app Sign in stopped an existing fake chat process; another real request reached the host's refusal while sign-in waited and spawned no chat process. No Google login was performed. Default-tab/setup behavior and non-Mac platforms were reviewed in code rather than exercised live; the unsafe-file List-error attempt did not establish an actual failed List response, so that availability fix has source evidence only. No merge or rebase was performed. Before, on the stack base: Waiting for browser completion: After cancellation: Saved status after reopening Accounts (the existing rating prompt is also visible): |
460f09b to
7bbc3dc
Compare
797b55a to
99416ac
Compare
7bbc3dc to
2a71622
Compare
99416ac to
12f4d3d
Compare
95372ef to
aec9de8
Compare
12f4d3d to
34a77ab
Compare
aec9de8 to
bc38930
Compare
34a77ab to
ae28388
Compare
|
QA (dev build at ae28388 on macOS): Antigravity chat sign-in placement — PASS
|
bc38930 to
339c58a
Compare
e82466e to
217e01e
Compare
ae28388 to
597b695
Compare
217e01e to
28c2b42
Compare
597b695 to
0cdf7e0
Compare
28c2b42 to
24acd09
Compare
0cdf7e0 to
08bf0ad
Compare
24acd09 to
9e9c277
Compare
08bf0ad to
b757319
Compare
9e9c277 to
d91fe6b
Compare
b757319 to
23d746c
Compare
|
QA round 3 (fix round 1 checks), tested at
|
d91fe6b to
08ee20a
Compare
… Chat > Providers and Accounts The chats' sign-in row now sits directly below the Antigravity install row, in Settings > Chat > Providers and under the agy section of Accounts, with copy that says it is separate from the agy account. Its button reads Sign in, Change account or Retry sign-in by state, and stays visible but disabled while the host has no runnable server; the install row above says why.
…er host and pick up one already running Settings shows the sign-in row under Chat > Providers and under Accounts at once; each kept its own flow, so starting one silently cancelled the other and a sign-in nobody watched could not be seen or cancelled. One entry per host now holds the flow and the saved sign-in for every row, follows the host's Link poll while a row shows it, and on mount adopts the running flow the host names. Sign in also waits while an install or Remove runs, read from the same install status.
…ign-in stays cancellable, and only a Remove (not an Update) holds Sign in
…ugh the same loop as install, so an idle page sees another device's sign-in
…tore; Install and Remove wait for a running sign-in, and Sign in waits for the host's answer Both stores now follow the host through one generic subscription store (snapshot, then a frame per newer revision, resubscribe with backoff on loss), replacing the sign-in store's long-poll of a method the host no longer has. While a sign-in runs, Install, Update and Remove are disabled (Cancel stays). The sign-in row keeps Sign in disabled until the host answers, says when the status could not be read instead of showing signed out, and sends one start or cancel at a time.
…tigravity chat sign-in While a chat sign-in waits on the browser, its row shows a field for the address of the last page after signing in, for when that page doesn't load because the browser is on another computer than the host. Continue sends it to the host, which passes it on to Antigravity; the host's refusal shows under the field. With that, remote hosts offer chat sign-in on the Accounts page too, and the row reads "Finishing sign-in…" while the host completes it.
…he new subscription export The sign-in row tests shared one fake host across every owner, so the first test's finished sign-in made the next row show "Change account" instead of "Sign in", and rows left mounted after that failure doubled the later tests' matches. Each owner now has its own fake host behind the subscription, and every test cleans up its render. The Antigravity accounts section test's client mock also lacked the sign-in exports the status store now reads at import.
…ign-in answer
The host no longer reports whether a sign-in file exists; it reports what the
server last answered (signed in, signed out, or not known yet), and a running
sign-in started by another client arrives without its id.
The row now reads that answer:
- "Signed in on {host}." or "Not signed in on {host}."; no line until the server
has answered, with Sign in still enabled. Change account shows only when the
server said signed in.
- A sign-in another client is running reads "Sign-in is in progress in another
client.", with Sign in disabled and no Cancel, copy link or paste field, since
only the client that started it can act on it.
- "Finishing sign-in..." also follows a browser sign-in while the host checks it.
- Cancel and paste send only this client's own sign-in; the host's refusals
show under the row.
…gs, not what the agent printed The notice read "Sign in to Antigravity. The agent asked to sign in in a browser": the second sentence was Orca's own log text for the sign-in prompt the agent printed, shown as if it were the agent's words, and the notice never said where to sign in. The connection now closes with a sign-in prompt error whose message stays in the logs, so the chat shows only Orca's sign-in sentence. Antigravity gets its own sentence, in the shape Claude's already has: "Antigravity isn't signed in. Sign in under Settings → Accounts → Antigravity." Other agents' sign-in words, and the agent's own words in a sign-in answer, are unchanged.
…he signed-out notice A signed-out Antigravity chat still read "... The agent asked to sign in in a browser". The connection closes with a sign-in prompt error whose message is Orca's log text, but the request wrapper and session setup re-typed every sign-in answer by copying its message into a new error. The copy lost the sign-in prompt type, so its message was quoted as the agent's own words. Re-typing now keeps a sign-in prompt close as it is, at both the request wrapper and session setup, so the notice says only where to sign in.
…ce a sign-in is cancelled or timed out After a cancelled or timed-out sign-in the row kept reading "Sign-in cancelled." even when the host had answered that this computer is not signed in. A finished sign-in now only stands in until the host answers; then the row reads "Not signed in on <host>." or "Signed in on <host>.". A running sign-in still shows its step.
…t the browser's URL bubble The paste field is a URL input, so the browser's own "Please enter a URL." check ran before Orca could explain what was wrong with the address. The form now skips the browser's check and shows the host's refusal sentence.
…w like the install row The sign-in row sat in its own bordered box, the same bright outline the install row lost when it became a single grey status line. It now has no box: a medium-weight "Antigravity chats" title, the description and the grey status line under it (errors inline in the destructive colour), and its action at the row's right end. Sign in and Retry are primary buttons, so they stand out like Install; Change account stays outline and Cancel stays ghost. The paste-the- address form sits under the row without a box. Copy, keys and behaviour are unchanged.
c7fc895 to
7a12669
Compare
📝 Walkthrough
Priority: ➖ Normal Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e9d15406-a904-4e9c-9f0d-2d705ce09228
📒 Files selected for processing: 27
src/main/acp/acp-agent-connection.tssrc/main/acp/acp-errors.tssrc/main/acp/acp-response-settlement.tssrc/main/acp/acp-session-setup.tssrc/main/acp/acp-structured-sign-in.test.tssrc/main/acp/acp-turn-failures.tssrc/renderer/src/components/managed-runtime/ManagedRuntimeInstallRow.tsxsrc/renderer/src/components/native-chat/agent-session-availability-words-text.tssrc/renderer/src/components/settings/AntigravityAccountsSection.test.tsxsrc/renderer/src/components/settings/AntigravityAccountsSection.tsxsrc/renderer/src/components/settings/AntigravityChatSignInRow.test.tsxsrc/renderer/src/components/settings/AntigravityChatSignInRow.tsxsrc/renderer/src/components/settings/NativeChatProvidersSetting.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/runtime/antigravity-chat-sign-in-status.tssrc/renderer/src/runtime/managed-runtime-install-status.tssrc/renderer/src/runtime/revisioned-host-state-store.tssrc/renderer/src/runtime/runtime-antigravity-accounts-client.tssrc/shared/agent-session-availability.test.tssrc/shared/agent-session-availability.tssrc/shared/agent-session-failure-copy.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.
| /** Only the client that started a flow is told its id, so only it can cancel or complete it. */ | ||
| const ownFlowId = (owner: RuntimeClientTarget): string | null => flowOf(owner)?.flowId ?? null | ||
|
|
||
| export async function cancelAntigravityChatSignIn(owner: RuntimeClientTarget): Promise<void> { | ||
| const flowId = ownFlowId(owner) | ||
| if (flowId) { | ||
| await callAntigravityChatSignIn(owner, 'Cancel', { flowId }).catch( | ||
| (cause: unknown) => note(localFor(owner), { error: message(cause) }) | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| /** Sends the address the browser ended on to the host, for a browser on another computer. | ||
| * Resolves to the host's refusal, empty when it gave no reason, or null once it took it. */ | ||
| export async function completeAntigravityChatSignIn( | ||
| owner: RuntimeClientTarget, | ||
| callbackUrl: string | ||
| ): Promise<string | null> { | ||
| const flowId = ownFlowId(owner) | ||
| if (!flowId) { | ||
| return '' | ||
| } | ||
| return callAntigravityChatSignIn(owner, 'Complete', { flowId, callbackUrl }).then( | ||
| () => null, | ||
| message | ||
| ) | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '1,190p' src/renderer/src/runtime/antigravity-chat-sign-in-status.ts
sed -n '200,315p' src/renderer/src/components/settings/AntigravityChatSignInRow.tsxRepository: stablyai/orca
Length of output: 10998
Fence cancellation errors to the flow that started the request.
cancelAntigravityChatSignIn records every rejected Cancel RPC in the host-local notes. If flow A is replaced by flow B before the rejection arrives, the error remains in the shared notes and the row displays it for flow B. Check that the flow is still current before recording the error.
Suggested fix
- await callAntigravityChatSignIn(owner, 'Cancel', { flowId }).catch(
- (cause: unknown) => note(localFor(owner), { error: message(cause) })
- )
+ await callAntigravityChatSignIn(owner, 'Cancel', { flowId }).catch((cause: unknown) => {
+ if (flowOf(owner)?.flowId === flowId) {
+ note(localFor(owner), { error: message(cause) })
+ }
+ })…gn-in area The Providers row's status line now says only the install state. Update, Reinstall and Remove move into a ⋯ menu beside the switch, shown for a copy on disk; Remove keeps its confirmation. Sign-in moves into a quiet inset area under the row, shown once a copy runs, with one sentence and one action per state. Accounts keeps its sign-in row; its install row gets the same menu.
A damaged copy's repair is the next step, so it sits where Install does instead of inside the ⋯ menu, which then offers only Remove.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5b21c7ef-9658-4b06-9ecc-211ed176ac94
📒 Files selected for processing: 16
src/renderer/src/components/managed-runtime/ManagedRuntimeActionsMenu.tsxsrc/renderer/src/components/managed-runtime/ManagedRuntimeInstallRow.tsxsrc/renderer/src/components/managed-runtime/ManagedRuntimeRemoveButton.tsxsrc/renderer/src/components/managed-runtime/ManagedRuntimeRemoveDialog.tsxsrc/renderer/src/components/managed-runtime/managed-runtime-install-view.test.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-view.tssrc/renderer/src/components/settings/AntigravityAccountsSection.tsxsrc/renderer/src/components/settings/AntigravityChatSignInRow.tsxsrc/renderer/src/components/settings/AntigravityProviderSignInArea.tsxsrc/renderer/src/components/settings/NativeChatProvidersSetting.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.json
💤 Files with no reviewable changes: 1
- src/renderer/src/components/managed-runtime/ManagedRuntimeRemoveButton.tsx
🚧 Files skipped from review as they are similar to previous changes: 7
- src/renderer/src/components/settings/AntigravityAccountsSection.tsx
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/fr.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; 0 remain after this review.
| {onRemove === null ? null : ( | ||
| <ManagedRuntimeRemoveDialog | ||
| agentLabel={agentLabel} | ||
| host={props.host} | ||
| open={confirming} | ||
| onOpenChange={setConfirming} | ||
| onRemove={onRemove} | ||
| /> | ||
| )} |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '1,180p' src/renderer/src/components/managed-runtime/ManagedRuntimeActionsMenu.tsx
sed -n '1,130p' src/renderer/src/components/managed-runtime/ManagedRuntimeRemoveDialog.tsx
sed -n '50,175p' src/renderer/src/components/managed-runtime/ManagedRuntimeInstallRow.tsx
rg -n 'signInRunning|onRemove|removeManagedRuntime|remove.*sign.in|sign.in.*remov' src/renderer/src/components/managed-runtime src/renderer/src/runtime src/mainRepository: stablyai/orca
Length of output: 16505
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- sign-in and removal symbols ---'
rg -n -F --glob '*.{ts,tsx}' \
-e 'signInRunning' \
-e 'removeManagedRuntime' \
-e 'removeRuntime' \
-e 'ManagedRuntimeInstallRow' \
-e 'Install and Remove wait' \
src/renderer/src src/main shared || test "$?" -eq 1
printf '%s\n' '--- managed runtime status ---'
sed -n '1,180p' src/renderer/src/runtime/managed-runtime-install-status.ts
printf '%s\n' '--- launch/host receiver candidates ---'
sed -n '1,240p' src/main/acp/acp-launch-specs.ts
rg -n -F --glob '*.{ts,tsx}' \
-e 'installing' \
-e 'sign-in' \
-e 'signIn' \
-e 'removeManagedRuntime' \
-e 'removeRuntime' \
src/main src/renderer/src shared | head -n 240Repository: stablyai/orca
Length of output: 41247
🏁 Script executed:
rg -n -F --glob '*.{ts,tsx}' -e 'signInRunning' -e 'removeManagedRuntime' -e 'removeRuntime' -e 'Install and Remove wait' src/renderer/src src/main shared || test "$?" -eq 1
sed -n '1,180p' src/renderer/src/runtime/managed-runtime-install-status.ts
sed -n '1,240p' src/main/acp/acp-launch-specs.ts
rg -n -F --glob '*.{ts,tsx}' -e 'installing' -e 'sign-in' -e 'signIn' -e 'removeManagedRuntime' -e 'removeRuntime' src/main src/renderer/src shared | head -n 240Repository: stablyai/orca
Length of output: 41045
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- exact managed runtime RPC bindings ---'
rg -n -F --glob '*.ts' -e 'managedRuntime.remove' -e 'managedRuntime.install' -e 'managedRuntime.subscribe' -e 'managedRuntime.cancel' src || test "$?" -eq 1
printf '%s\n' '--- managed runtime declarations and receivers ---'
rg -n -F --glob '*.ts' -e 'ManagedRuntimeInstallState' -e 'managed-runtime-install' -e 'managedRuntime' src/main src/shared src/renderer/src || test "$?" -eq 1
printf '%s\n' '--- likely host runtime files ---'
find src/main -maxdepth 4 -type f \( -iname '*managed*runtime*' -o -iname '*runtime*install*' -o -iname '*runtime*handler*' \) -printRepository: stablyai/orca
Length of output: 18759
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- managed runtime RPC receiver ---'
sed -n '1,190p' src/main/runtime/rpc/methods/managed-runtime-install.ts
printf '%s\n' '--- launch gate declarations and implementation ---'
rg -n -F --glob '*.ts' -e 'export type AcpLaunchGate' -e 'class' -e 'run(' -e 'ANTIGRAVITY_LAUNCH_GATE' src/main/acp src/main/antigravity | head -n 220
printf '%s\n' '--- gate and antigravity account source ---'
sed -n '1,220p' src/main/acp/acp-launch-gate.ts
rg -n -F --glob '*.ts' -e 'ANTIGRAVITY_LAUNCH_GATE' -e 'launchGate' src/main/antigravity src/main/acp
printf '%s\n' '--- managed runtime tests around removal ---'
sed -n '1,230p' src/main/runtime/rpc/methods/managed-runtime-install.test.tsRepository: stablyai/orca
Length of output: 22201
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- managed runtime RPC receiver ---'
sed -n '1,190p' src/main/runtime/rpc/methods/managed-runtime-install.ts
printf '%s\n' '--- launch gate declarations and implementation ---'
rg -n -F --glob '*.ts' -e 'export type AcpLaunchGate' -e 'ANTIGRAVITY_LAUNCH_GATE' -e 'launchGate' src/main/acp src/main/antigravity
printf '%s\n' '--- gate implementation ---'
sed -n '1,220p' src/main/acp/acp-launch-gate.ts
printf '%s\n' '--- managed runtime tests around removal ---'
sed -n '1,230p' src/main/runtime/rpc/methods/managed-runtime-install.test.tsRepository: stablyai/orca
Length of output: 17099
🏁 Script executed:
set -o pipefail
printf '%s\n' '--- managed runtime installation removal flow ---'
sed -n '1,280p' src/main/node-runtime/managed-runtime-installation.ts
printf '%s\n' '--- removal status rendering ---'
rg -n -F --glob '*.ts' -e 'removeFailed' -e 'Removal failed' -e 'remove' src/renderer/src/components/managed-runtime src/shared/managed-runtime-install.ts
sed -n '1,230p' src/renderer/src/components/managed-runtime/managed-runtime-install-view.tsRepository: stablyai/orca
Length of output: 17251
Keep Remove disabled while sign-in runs.
The dialog can remain open when disabled changes. Its Remove button then starts a removal operation. The Antigravity host gate rejects that operation while sign-in owns the gate, so the runtime is kept but the operation is recorded as failed instead of waiting as documented.
🐛 Suggested fix
<ManagedRuntimeRemoveDialog
agentLabel={agentLabel}
host={props.host}
open={confirming}
+ disabled={disabled}
onOpenChange={setConfirming}
onRemove={onRemove}
/>In ManagedRuntimeRemoveDialog.tsx:
onRemove: () => void
+ disabled?: boolean
}): React.JSX.Element {
...
<Button
variant="destructive"
+ disabled={props.disabled}
onClick={() => {
















ELI5
Antigravity chats need Google's separate Antigravity chat server. An earlier version of this stack downloaded it silently the first time a chat started: about 18 seconds of "Working for Ns" with no progress and no Cancel, and every extra chat opened started another download. Now nothing downloads until the person clicks Install, which shows the size, progress and Cancel in Settings and in the new chat.
Once installed, Antigravity chats use their own Google sign-in, separate from the
agyterminal account. Until this PR, a chat that needed sign-in ended as "not signed in" with no way to fix it in Orca. This PR adds an "Antigravity chats" sign-in row right below the Antigravity install row, in Settings > Chat > Providers and in the Antigravity section of Accounts, when experimental Chat UI is on.What Changed
Latest revision (10-18): rebased onto main after the sign-in service (#28650), Remove (#29139, #29140) and the provider-row restyle merged. The "Antigravity chats" sign-in row now matches the install row above it: no bordered box. It shows a title, the grey description and a grey status line ("Not signed in on this device."), with the action on the right: a primary Sign in button, Cancel while a sign-in runs, Retry sign-in after a cancel or timeout, and Change account when signed in. The field for pasting Google's last page sits under the line, also without a box.
This revision (moving to the common pattern; each item is problem, then what changes):
Remote hosts had no sign-in row, so a remote host could install Antigravity but its chats could never run. The row now shows for every host. While a sign-in waits, it shows a field under the link, "If the last page after signing in doesn't load, copy its full address from your browser and paste it here.", with Continue (disabled while empty or sending). The host checks the address and passes it on (feat(antigravity): sign Antigravity chats in with the server's own Google sign-in #28650); a refused address shows its reason under the field, and the row reads "Finishing sign-in…" while the host completes it. The field shows on every sign-in, local too, as the common pattern does.
The sign-in row polled the host, in a loop of waits of up to 25 seconds, through its own copy of the install store's loop. Both rows now share one subscription store: a snapshot when a row is shown, then one frame per newer revision, resubscribing with backoff when the connection is lost, and ending when the last row hides. The sign-in row subscribes to
accounts.antigravityChatSignInSubscribe(feat(antigravity): sign Antigravity chats in with the server's own Google sign-in #28650), the install row tomanagedRuntime.subscribe(feat(acp): hosts install a managed runtime over RPC, and mark agents whose program Orca provides #29024).Install, Update and Remove stayed clickable while a sign-in ran, so the person could confirm "Running Antigravity chats there stop." and then get a refusal. They are now disabled while this host's sign-in runs (Cancel installation stays), in both places, as the common pattern does. Sign in was already disabled during Remove.
The row flipped while loading. Before the host's first answer it showed "Sign in on {host}." with an enabled Sign in, then switched to "Sign-in saved on {host}." with Change account. Sign in now stays disabled and the status line stays empty (its space kept) until the host answers.
A failed status read said "Sign in on {host}.", claiming signed out when the state was unknown. It now says "Could not check the sign-in on {host}." and keeps retrying.
A double click sent two Starts, and the host replaced the first sign-in with the second. Sign in and Cancel now send one request at a time.
Where: directly below the install row in both places. Providers says "Chats use their own Antigravity sign-in, separate from your agy terminal account. Sign in once on this device." Accounts says "Chats use their own Antigravity sign-in, separate from your agy account above. Sign in once on this device."
Status line: "Sign in on {host}." or "Sign-in saved on {host}." when idle. "Sign-in saved" means a sign-in file exists, never that it still works. While signing in: "Starting sign-in…", then "Finish signing in in your browser.", or "Copy the link and open it in your browser." if the browser couldn't open. Afterwards: "Signed in.", "Sign-in cancelled.", "Sign-in timed out. Try again.", or the host's reason (else "Sign-in failed. Try again.").
Button: Sign in. It reads Change account when a sign-in is saved or just finished, and Retry sign-in when the last attempt failed, was cancelled or timed out. It is never hidden. It is disabled until the host's sign-in status is known, while Antigravity isn't installed on this machine, while the install status is still unknown, while Remove runs, and while its own Start or Cancel is out. The install row right above already says why, so there is no second message. An Update or Reinstall keeps it usable, because the installed copy keeps running until the new one is in place.
Flow: Sign in starts the host's Google sign-in (feat(antigravity): sign Antigravity chats in with the server's own Google sign-in #28650) and opens its page once, and only for a sign-in started from a visible row. While waiting, the row offers a Copy sign-in link icon and Cancel.
One sign-in per host: both rows show the same sign-in, so starting it in one shows it in the other. An open row also picks up a sign-in started, cancelled or finished from another device, and a row shown while a sign-in is already running on the host (for example, after leaving Settings and coming back) shows "Finish signing in in your browser." with Cancel and Copy link.
Errors: if the subscription is lost, the row keeps showing the host's last answer and resubscribes with the install row's backoff (1 s, doubling to 30 s), so a sign-in still running there stays visible with Cancel and a lasting error can't spin. If the first read fails, the row says "Could not check the sign-in on {host}."
While a sign-in runs: the install row above disables Install, Update and Remove; Cancel installation stays available.
Sign-in stops this machine's running Antigravity chats before changing their shared sign-in; they start again on the next message. New chat starts are refused while it runs.
Every host shows the sign-in row, remote hosts included. Google's last page returns to 127.0.0.1 on the host, so from another computer the person pastes that page's address into the field.
Settings search finds the section by "login" too. New strings are translated into all six languages.
Mechanism: the install status store's subscription logic is now one generic module (
revisioned-host-state-store.ts), and both the install row and the sign-in row use it. While a row is shown, one subscription per host carries the host's sign-in state, idle included, so the flow and "saved" stay current. Every subscription is a new generation, so a restarted host's state replaces the old one and a late frame from an earlier subscription is dropped. The sign-in store keeps only what is this client's own: the link it opens once for a sign-in it started, and the error from its last request.Why
Sign-in runs the installed server, so it belongs right under the row that installs it. Disabling it there, instead of hiding it, keeps one explanation in one place. The row reuses the existing Accounts section, the host-owned sign-in service, the browser-opening path and clipboard feedback, and the host stays responsible for the sign-in and the flow. One store per host, rather than state in each row, is what keeps the two rows from cancelling each other.
Linked Issue
N/A (maintainer; part of the Antigravity Chat UI stack).
Visual Proof
Round 10 QA at
9b0de605507(macOS arm64, hidden dev app, dark theme, throwaway profile never signed in to Google, real pinned Antigravity runtime installed and removed through the UI).Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Row tests against a fake host that pushes sign-in snapshots over a subscription: the link opens once across repeated waiting frames and the row ends signed in; a Start answered after the row unmounts opens nothing; an idle row shows a sign-in another device starts and can cancel it.
Required GitHub CI checks pass on this PR.
Review
Agent skill upstream boundary
QA, round 2 (M4Air, 10-16, build of
2efa3308959before this revision's last fixes; Grok drove the hidden window over the Chrome DevTools Protocol only)Notes
Differences from the common pattern
/logoutstays withheld in chats until then, feat(acp): Antigravity in the Chat UI over its ACP server #28595).Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)