You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(antigravity): opt-in AI chat titles for Antigravity chats - #51444
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):
After, default off (light), and on (dark):
The copy for the Gemini API key method (light, dark). Enterprise and Agent Platform get their own lines too:
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)
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Antigravity chats 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.
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:
<userData>/acp-text-task-homes/antigravity/run-XXXX, passed with--gemini-dir. The home holdssettings.jsonfor 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.agy -p. It keeps the fixed naming client identity, denies permissions, and enters the Antigravity launch gate, as before.lockedor uncertain (the keyring fallback marker is set), or when a Google method has no login present.settings.antigravity-chat-naming.v1, becausesettings.updateis strict and older hosts would reject the key. Each key is gated on its own capability, so older hosts still getnativeChatAutoName.Why
A run home per naming run is the only option that leaves nothing behind. I considered two others:
conversation_summaries.db. The file grows forever, and it can't be deleted safely while another run has it open.~/.geminior 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.textTaskHomehook sits next tokeepsEverySession. 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):
After, default off (light), and on (dark):
The copy for the Gemini API key method (light, dark). Enterprise and Agent Platform get their own lines too:
Testing
antigravity-chat-naming-home.test.tsdrives 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.--gemini-dirpointing at a run home outside~/.gemini.lockedkeyring starts no agy.oauth-businessstarts no agy.structured-chat-naming-runtime.test.ts: with the setting off there is nogenerateTextcall. With it on, a title comes back. Turning it off mid-run makes the run'sshouldExecutefalse.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:changedpasses. 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 amkdtemp, two stats, at most onesettings.jsonread, one credential-presence check (on macOS, onesecurityattribute 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.
nativeChatAutoNamehas the same gap.A plain revert backs it out. The saved
antigravityChatNamingkey is then ignored.Level: Medium
AI Disclosure
Review
Agent skill upstream boundary
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)