Skip to content

feat(antigravity): opt-in AI chat titles for Antigravity chats - #51444

Merged
AmoabaKelvin merged 4 commits into
mainfrom
feat/antigravity-opt-in-chat-titles
Nov 28, 2026
Merged

AmoabaKelvin merged 4 commits into
mainfrom
feat/antigravity-opt-in-chat-titles

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Antigravity chats never got a generated title. They kept their first message as the title. You can now turn on "Generate chat titles with Antigravity" under Settings → Chat → Chat names. It's off by default because each title sends a prompt Orca wrote to Antigravity on your own sign-in, without you asking each time.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​224 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​224
Prod 24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​506 $\color{#cf222e}{\Huge{\mathbf{−}}}$​40 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​466

What Changed

Before: naming an Antigravity chat with its own agent always returned nothing. Title runs would have landed in agy's history in ~/.gemini, or in Orca's chat home, and agy can't delete sessions over ACP. You only got titles if you picked a different naming agent in Advanced.

After, when the toggle is on:

  • Each naming run gets its own agy home under <userData>/acp-text-task-homes/antigravity/run-XXXX, passed with --gemini-dir. The home holds settings.json for the chat's sign-in method. On file-store hosts it also holds a copy of agy's login file. Keyring hosts share the OS login. The home gets no skills or rules, and the run doesn't restore the selected account.
  • The run still goes over ACP, never agy -p. It keeps the fixed naming client identity, denies permissions, and enters the Antigravity launch gate, as before.
  • Once agy exits and preparation has settled, Orca removes the whole run home, including the session and agy's summaries index. Nothing reaches the person's agy history. Removal retries transient sharing errors. A home that still can't be removed, or one a crash left, is swept before the next naming run and whenever a host starts serving (desktop and headless alike), whatever the setting, so a copied login never lingers.
  • The run never starts where it could raise a keyring prompt. It skips silently when agy's credential store is locked or uncertain (the keyring fallback marker is set), or when a Google method has no login present.
  • For a chat on agy's own home, the run skips unless the naming home would sign in the same way. That means the saved method is personal Google, no agy sign-in variables are set, and agy's own settings choose no model provider and no other auth type.
  • The naming runtime checks the setting before any spawn. It checks again until the prompt is sent, so turning the setting off stops a run that's still waiting.
  • When the toggle is off, Antigravity chats keep today's first-message titles. Picking a separate naming agent works as before, and the toggle is hidden then because it has no effect.
  • WSL hosts follow the desktop switch, the same way "Name chats automatically" already does. This is gated on the new host capability settings.antigravity-chat-naming.v1, because settings.update is strict and older hosts would reject the key. Each key is gated on its own capability, so older hosts still get nativeChatAutoName.

Why

A run home per naming run is the only option that leaves nothing behind. I considered two others:

  • One shared naming home, with each session discarded afterwards. agy keeps a row per session in that home's conversation_summaries.db. The file grows forever, and it can't be deleted safely while another run has it open.
  • Running in ~/.gemini or the Orca chat home. The title run would show in the person's agy history, or sit next to their real Enterprise and API-key chats.

The new AcpLaunchSpec.textTaskHome hook sits next to keepsEverySession. Other agents that keep every session could use it later without another special case in the text task.

Linked Issue

No issue. This is a maintainer product decision: opt-in Antigravity titles, off by default, because of automated use on a personal Google login.

Visual Proof

Settings → Chat → Chat names (component fixture).

Before (light, dark):

before light
before dark

After, default off (light), and on (dark):

after off light
after on dark

The copy for the Gemini API key method (light, dark). Enterprise and Agent Platform get their own lines too:

api key light
api key dark

Testing

  • antigravity-chat-naming-home.test.ts drives the real Antigravity spec and the text task against a scripted ACP agent in a scratch data folder and HOME. The scripted agent writes fake session files.

    • A title comes back, and agy ran with --gemini-dir pointing at a run home outside ~/.gemini.
    • The run home, session files and summaries index are gone once agy exits.
    • A locked keyring starts no agy.
    • A chat on agy's home whose own settings say oauth-business starts no agy.
  • structured-chat-naming-runtime.test.ts: with the setting off there is no generateText call. With it on, a title comes back. Turning it off mid-run makes the run's shouldExecute false.

  • Mutation-checked: dropping the home removal or the keyring admission fails the matching tests.

  • I didn't run agy or Orca, and nothing touched the real login or keychain.

  • pnpm check:changed passes. Checked on macOS only.

  • 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

Performance

None while the toggle is off (the default), apart from one launch-time removal of acp-text-task-homes/antigravity, which is usually missing. When it's on, the work is bounded to once per chat context. Each run does a mkdtemp, two stats, at most one settings.json read, one credential-presence check (on macOS, one security attribute read), one small file copy and a recursive remove. Nothing polls, and nothing runs synchronously on the main thread. The WSL push reads the cached host status twice.

Risk

The riskiest part is agy in a brand-new home. If agy writes something outside --gemini-dir, or behaves differently on first run in an empty home, naming could fail or leave something behind. Orca's chat homes already rely on --gemini-dir, but I haven't checked it against a real agy here. If naming fails, the person sees "Antigravity could not name this chat" and the chat keeps its first-message title.

Only people who turn the setting on are affected. On SSH and paired servers the setting can't be changed from the client yet, so naming stays off there. nativeChatAutoName has the same gap.

A plain revert backs it out. The saved antigravityChatNaming key is then ignored.

Level: Medium

AI Disclosure

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

  • Security: the login copy is 0600 inside 0700 folders and is removed on exit and at launch. No credentials are read beyond the existing login-copy path.
  • Cross-platform: paths stay native to each host and go as separate argv entries. The Linux keyring check refuses a locked collection, and Windows Credential Manager reads never prompt.
  • WSL: covered by the capability-gated push.
  • SSH: naming stays local only, as before.
  • Mobile: older clients don't see the toggle, and the host's setting decides.
  • Folder workspaces: not affected.

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 28, 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

The change adds opt-in Antigravity chat-title generation. It adds temporary task-home creation, admission checks, release, and cleanup for text-task launches. Runtime settings and the chat-naming UI expose the opt-in and authentication-specific descriptions. WSL settings updates now include the Antigravity option when the host supports it.

Merge Risk: Minimal · previous review 8963b

This adds an opt-in, off-by-default setting for Antigravity chat titles, using a temporary home that is removed after each run. Naming is skipped when credentials or sign-in settings are uncertain. No concrete defect or regression was found in the reviewed changes. The author notes that behavior with a real login or keychain was not tested, so a quick manual check would be reasonable.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(antigravity): opt-in AI chat titles for Antigravity chats" matches the main change: an opt-in, off-by-default setting that generates chat titles with Antigravity. The changeset adds th…
Description check Passed The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue (explained as a maintainer product decision with no issue), Visual Proof with before and after ima…
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 "feat(antigravity): opt-in AI chat titles for Antigravity chats" matches the main change: an opt-in, off-by-default setting that generates chat titles with Antigravity. The changeset adds the setting, per-run agy homes, cleanup sweeps, and WSL capability gating, which the title does not enumerate, but the title names the primary change and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue (explained as a maintainer product decision with no issue), Visual Proof with before and after images, Testing, Performance, Risk with a level, Notes, and Checklist. The Performance section gives a reasoned answer. The Risk section names the riskiest part and a revert path. Gaps: the Linked Issue section says no issue exists, which conflicts with the template's requirement for one. The AI Disclosure and Review sections are empty. The Review section has no content. The final checklist item for lint, typecheck, test, and build is unchecked, and the Testing section says only macOS was checked.

Resolution

Optional improvements: confirm with maintainers whether the linked-issue requirement applies, since the author marks none. Fill in or remove the empty AI Disclosure and Review headings. Confirm the unchecked pnpm lint, typecheck, test, and build item, or state that CI will cover it.

  • 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: 10bb81f1-2b13-4e1e-b58e-da01842e9959
Commits

Reviewing files that changed from the base of the PR and between a745929 and 8963b3b.

Files selected for processing: 2

  • src/main/acp/text-task/acp-text-task-launch.ts
  • src/main/antigravity/antigravity-chat-naming-home.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 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: 4c9b4b57-b936-4a30-a4ca-afd179986c11
Commits

Reviewing files that changed from the base of the PR and between 8b2d17b and 5c2ea0c.

Files selected for processing: 26

  • src/main/acp/launch/acp-launch-contract.ts
  • src/main/acp/launch/acp-private-temp.ts
  • src/main/acp/text-task/acp-text-task-launch.ts
  • src/main/acp/text-task/acp-text-task.ts
  • src/main/antigravity/agy-login-copy.ts
  • src/main/antigravity/antigravity-acp-launch-spec.ts
  • src/main/antigravity/antigravity-agy-orca-home-environment.ts
  • src/main/antigravity/antigravity-agy-orca-home.ts
  • src/main/antigravity/antigravity-chat-naming-home.test.ts
  • src/main/antigravity/antigravity-chat-naming-home.ts
  • src/main/antigravity/antigravity-host-acp.ts
  • src/main/ipc/wsl/wsl-host-desktop-settings-push.ts
  • src/main/ipc/wsl/wsl-host-handlers.ts
  • src/main/runtime/agent-session/naming/structured-chat-naming-runtime.test.ts
  • src/main/runtime/agent-session/naming/structured-chat-naming-runtime.ts
  • src/main/runtime/client/settings/runtime-client-settings-shape.ts
  • src/main/runtime/construction/runtime-store-contract.ts
  • src/main/startup/runtime-startup/chat-journal-startup.ts
  • src/main/wsl/orcad/wsl-orcad-host-chat-naming-push.ts
  • src/renderer/src/components/settings/chat/ChatNamingSetting.fixture.tsx
  • src/renderer/src/components/settings/chat/ChatNamingSetting.tsx
  • src/renderer/src/components/settings/chat/chat-naming-search.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/native-chat/settings/native-chat-appearance-settings.ts
  • src/shared/remote-runtime/protocol/orcad-runtime-capabilities.ts
  • src/shared/rpc-contract/client-ui/client-settings-params.ts

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

Comment thread src/main/antigravity/agy-login-copy.ts Resolved
@AmoabaKelvin
AmoabaKelvin force-pushed the feat/antigravity-opt-in-chat-titles branch 2 times, most recently from a745929 to 8963b3b Compare November 28, 2026 05:38
@AmoabaKelvin
AmoabaKelvin force-pushed the feat/antigravity-opt-in-chat-titles branch from 8963b3b to cb33d16 Compare November 28, 2026 06:00
Antigravity chats got no generated titles because a naming session would
land in agy's own history. With "Generate chat titles with Antigravity"
on (off by default), naming runs on a per-run agy home under Orca's data
folder with the chat's sign-in method and login, and the home is removed
with the session once agy exits. It never starts where agy's keyring
lookup could prompt, and skips chats on agy's own home whose sign-in a
naming home can't reproduce. WSL hosts follow the desktop switch.
@AmoabaKelvin
AmoabaKelvin force-pushed the feat/antigravity-opt-in-chat-titles branch from cb33d16 to 0bf558a Compare November 28, 2026 10:19
@AmoabaKelvin
AmoabaKelvin merged commit 3867e92 into main Nov 28, 2026
61 checks passed
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