Skip to content

Antigravity install: one clear message in the chat, with the message box staying in place - #30001

Merged
brennanb2025 merged 11 commits into
mainfrom
brennanb2025/agy-chat-install-redesign
Oct 18, 2026
Merged

brennanb2025 merged 11 commits into
mainfrom
brennanb2025/agy-chat-install-redesign

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​243 $\color{#cf222e}{\Huge{\mathbf{−}}}$​63 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​180
Prod 31 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​816 $\color{#cf222e}{\Huge{\mathbf{−}}}$​150 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​666

ELI5

A new Antigravity chat invited you to start chatting while a small install card replaced the message box. The invitation and the missing prerequisite competed for attention. The chat now presents one clear install action and keeps the message box in place, dimmed until the program is ready.

What Changed

  • An empty chat uses the approved install tile. Existing conversations use a slim install strip above the message box. Install and Cancel also remain reachable while a conversation’s history is still loading or could not resume.
  • Download, unpacking, verification, cancellation and retry use the existing operation on the computer running the chat. Failures say “Couldn’t install” and retain the reason. Only local chats link to local Settings.
  • Every agent’s disabled message box keeps its placeholder and dims. Suggestions and new dictation starts respect that same disabled state. Saved drafts can restore, and an active recording keeps its Stop and release controls.

One derived view supplies the install presentation and the disabled-input reason. Program availability controls setup; history controls its layout. Existing prompt-card and final unreadable-history boundaries remain. This uses the existing saved data and messages between computers.

Why

This is Brennan’s approved 10-16 design. Keeping the input in place avoids the install-completion layout jump. The review corrected missing setup actions during resume, misleading host/failure copy, and disabled editing actions shared by all agents.

Visual Proof

Earlier complete comparison: 02b48ca8c067 versus main 299dcb86fc8a, same missing-runtime input:

Main Final
Main missing-runtime chat Final install tile and disabled box

Saved draft, same persisted QA saved @src/ input:

Main Final
Main saved draft while runtime missing Final saved draft remains readonly while runtime missing

Loaded conversation, same persisted refusal history:

Main Final
Main loaded history while runtime missing Final loaded history beside install strip

After successful installation, the exact saved draft and its suggestions recover:

Final saved draft recovered after installation

After the final sync with main

Current head 30635feae3d080c144b47fb854820376b0827116, M4Air:

New chat: install tile and retained disabled message box Loaded conversation: install strip and disabled message box
Current head install tile and disabled composer Current head actual refusal history and install strip

Testing

  • Short QA on final head 30635feae3d080c144b47fb854820376b0827116, M4Air/Grok through hidden Electron CDP: new-chat tile, genuine loaded-refusal-history strip, retained empty dimmed message box and blocked typing/paste passed. Ordinary Claude, Codex and OpenCode inputs remained editable. A fresh draft saved normally using the previously installed runtime. The copied old-origin draft did not restore in the newly leased renderer; saved-text retention while disabled after restart, full installation and image-chip interaction were not repeated on this head. The earlier full installation, draft-recovery and 32 named tests remain 02b48ca8c067 evidence. All owned processes stopped, ports were freed and all three real-config hashes stayed unchanged during this short run.
  • The full PR workflow passed on 30635feae3d080c144b47fb854820376b0827116, including static analysis/typecheck, all unit-test shards, relay integration, Linux/Windows packaging and the aggregate gate.
  • Earlier full QA on 02b48ca8c067, M4Air/Grok through hidden Electron CDP: actual failure, download, Cancel, retry, unpacking, verification and install passed. The composer kept its position. An exact saved @src/ draft survived runtime removal/restart/reinstall, stayed readonly without suggestions while unavailable, and recovered after installation. Genuine signed-out refusal history remained beside the install strip.
  • On 02b48ca8c067, five named install-view, launch-lifecycle, picker and composer-action files passed all 32 tests. Ordinary editable inputs worked in Claude, Codex and OpenCode. Independent correctness, architecture, performance and final readiness source reviews completed with no open P0–P2 findings.
  • Runtime gaps: unread resume, final unreadable history and owned prompt cards, active dictation/agent Stop, signed-in responses, paired hosts and stale-focused recall. Source and automated evidence remain separate from runtime coverage. Paste checks used owned in-page ClipboardEvents; the system clipboard path was not certified. Many-pane performance is unmeasured.

Notes

  • Intended difference from the common pattern: the approved install tile or strip appears inside the chat, with the message box retained and disabled. Installation targets the computer running that chat, including paired and SSH hosts.
  • Intended difference from the approved HTML mock: the title follows the existing chat type scale.
  • Deferred P3: an old paste-refusal message can remain after installation until successful paste or Dismiss. Recovered typing and paste worked; the notice did not block them.
  • Adjacent QA observations: the setup command ran in both builds, but the requested default tab was absent in both. Claude’s displayed model differed between isolated profiles; the cause was not established. Model-default parity and Pi/OMP native-chat responses are not certified.
  • Full review path: shipped UI and shared chat behavior exceed the light-path scope.
  • PR author: @BrennanKB5

@brennanb2025
brennanb2025 marked this pull request as ready for review October 17, 2026 06:51
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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
📝 Walkthrough

The change adds a managed-runtime install-card model and action hook, and removes surface-specific behavior from the existing runtime status view. Native chat now shows an install hero in empty sessions or an install strip when chat history exists. When installation is required, the composer remains visible but is disabled and displays an unavailable hint. Picker and dictation controls respond to the disabled state. Tests and translations cover the updated flow.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 0eb0d

The install flow works as described, but a static-analysis CI check fails on a ref write during render in the picker state hook. Remove that ref before merging so CI passes.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 25 files. (6 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description provides detailed ELI5, change, rationale, visual proof, testing, and notes sections. It does not include the required Linked Issue section with a Fixes #... reference, and it omits … Add the required Linked Issue section with an actual issue reference, then complete or explicitly mark the Review, Agent skill upstream boundary, and Checklist sections.
Passed Passed checks: 3 passed
Check name Status Explanation
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.
Title check Passed The title clearly summarizes the primary user-facing change: one Antigravity install message while keeping the composer in place.
Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 25 files. (6 skipped: 6 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description provides detailed ELI5, change, rationale, visual proof, testing, and notes sections. It does not include the required Linked Issue section with a Fixes #... reference, and it omits the template checklist and review sections.

Resolution

Add the required Linked Issue section with an actual issue reference, then complete or explicitly mark the Review, Agent skill upstream boundary, and Checklist sections.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@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

🧹 Nitpick comments: 1
src/renderer/src/components/native-chat/NativeChatStructuredSession.launch-lifecycle.test.tsx: 1

107-133: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Assert that the install slot blocks sends.

The composer mock always renders an enabled <textarea>. The current assertions check visibility and unavailableHint only. Add a send assertion to protect the install-state behavior without duplicating the composer implementation.

Suggested fix
     expect(screen.getByText(/One-time 112 MB download/)).toBeTruthy()
     expect(screen.getByTestId('structured-composer')).toBeTruthy()
     expect(mocks.composerProps?.unavailableHint).toBe('Install Codex to start chatting')
+    expect(composerSend()('hello while installing', [])).toBe(false)

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 62ff5021-ac3c-49fb-bcd1-80ff2ba5121e
📥 Commits

Reviewing files that changed from the base of the PR and between 05086a8 and ce1cf97.

📒 Files selected for processing: 24
  • src/main/node-runtime/managed-runtime-installation.test.ts
  • src/main/node-runtime/managed-runtime-installation.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-card.test.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-card.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-view.ts
  • src/renderer/src/components/managed-runtime/use-managed-runtime-install-card.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatEmptyPane.tsx
  • src/renderer/src/components/native-chat/NativeChatInstallHero.tsx
  • src/renderer/src/components/native-chat/NativeChatInstallSlot.tsx
  • src/renderer/src/components/native-chat/NativeChatInstallStrip.tsx
  • src/renderer/src/components/native-chat/NativeChatInstallTile.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.launch-lifecycle.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.test-harness.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-types.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/managed-runtime-install.ts

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

…clear install message, with the message box staying in place, disabled

A new chat replaces its Start-a-chat copy with an install message (what it is, its size, one Install button, then steps, progress and Cancel). A chat with messages gets a slim strip above the composer instead. Settings' row is unchanged.
…ill full bar once the download is done, and a plain ghost Cancel
…ize string main already has

Main's Antigravity work added the same "downloadSize" key to the install strings, so each locale
held it twice with slightly different text. The card now reads main's one string, so the hero's
caption under its button ends in a full stop like the Settings row's.
A chat now shows its own install card, so nothing renders the row's chat layout any more: Settings
> Chat > Providers and the Antigravity accounts section are its only users. The row and its view
lose the surface choice, the chat-only heading string goes from every locale, and the view always
says and offers what Settings did.
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-install-redesign branch from ce1cf97 to a38b4d5 Compare October 17, 2026 19:54

@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 · Give the install hint precedence over the goal placeholder. · NativeChatComposerField.tsx:322-329

src/renderer/src/components/native-chat/NativeChatComposerField.tsx:322-329
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Give the install hint precedence over the goal placeholder.

When a session is already in goal mode and the managed runtime becomes unavailable, unavailableHint can be set while goalMode.active remains true. The current order hides the install explanation in the disabled composer. Check unavailableHint first.

Suggested fix
              placeholder={
-                goalMode?.active
+                unavailableHint ??
+                (goalMode?.active
                   ? translate(
                       'components.native-chat.goal.placeholder',
                       'Describe your goal, define measurable outcomes for best results'
                     )
-                  : unavailableHint ?? nativeChatComposerPlaceholder(hasPty, canSend, afterStop)
+                  : nativeChatComposerPlaceholder(hasPty, canSend, afterStop))
              }

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3ba770b3-0bbe-4ddf-9f39-de5b83d6499e
📥 Commits

Reviewing files that changed from the base of the PR and between ce1cf97 and a38b4d5.

📒 Files selected for processing: 14
  • src/renderer/src/components/managed-runtime/ManagedRuntimeInstallRow.tsx
  • src/renderer/src/components/managed-runtime/managed-runtime-install-card.test.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-card.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-view.test.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-view.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/settings/AntigravityAccountsSection.tsx
  • src/renderer/src/components/settings/NativeChatProvidersSetting.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
💤 Files with no reviewable changes: 2
  • src/renderer/src/components/settings/NativeChatProvidersSetting.tsx
  • src/renderer/src/components/settings/AntigravityAccountsSection.tsx
🚧 Files skipped from review as they are similar to previous changes: 6
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/fr.json

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

…viders again, now that main has that row

Only chats on this computer show it: that row installs here, not on an SSH or paired host.
… so it says why it can't take a message

The editor drew its placeholder only while editable, so an install-blocked or held box looked
empty and enabled. The plain text box already dims and keeps its placeholder.

@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

🧹 Nitpick comments: 2
src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx: 1

203-204: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoff

Reduce the complexity of NativeChatStructuredSession.

React Doctor reports react-doctor/no-high-complexity-react-function for this component at Line 67. This PR adds more branching to it. Move the install-slot, composer-readiness, and notice logic into a small hook. For example, extract useNativeChatInstallSlot together with the composerReady and launch override logic. This keeps the component below the threshold.

Source: Pipeline failures

src/renderer/src/components/native-chat/NativeChatComposer.tsx: 1

117-121: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Reduce the complexity of NativeChatComposerPane.

React Doctor flags NativeChatComposerPane (Line 48) for high control-flow complexity. This is a warning only. The disabled and hasPty derivation is a candidate to extract into a small helper function.

Source: Pipeline failures


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 26e78b77-c83c-4a0a-b349-ff498f4c5fdb
📥 Commits

Reviewing files that changed from the base of the PR and between fbb6acf and 0eb0db2.

📒 Files selected for processing: 16
  • src/renderer/src/components/managed-runtime/managed-runtime-install-card.test.ts
  • src/renderer/src/components/managed-runtime/managed-runtime-install-card.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.test.tsx
  • src/renderer/src/components/native-chat/NativeChatInstallSlot.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.launch-lifecycle.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/use-native-chat-dictation.ts
  • src/renderer/src/components/native-chat/use-native-chat-picker-state.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-picker-state.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes: 8
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.launch-lifecycle.test.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/zh.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/components/managed-runtime/managed-runtime-install-card.ts

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

@brennanb2025

brennanb2025 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor Author

The old Antigravity chat invited you to start chatting while a small install card replaced the message box. This PR gives installation the approved tile or history strip and keeps the message box in place, dimmed until it is usable.

The full review fixed six P2 issues: setup actions disappearing during unread resume; misleading computer/sharing copy; contradictory disabled-input wording; download-only wording for other installation failures; suggestions editing a disabled draft; and new dictation starting without an editable destination. Active recording Stop/release and saved-draft restoration remain available. A narrow follow-up corrected the committed-state ref update required by CI.

Two review rounds, independent architecture/performance checks, the design panel and final readiness source inspection finished with no open P0–P2 findings. The approved in-chat placement and retained box are intended choices. Deferred P3: an old paste-refusal notice persists after installation until successful paste or Dismiss; actual typing/paste still worked.

Reviewed head: 30635feae3d080c144b47fb854820376b0827116, after the final sync with main. Source inspection of the mechanical editor merge confirms image-chip wiring and disabled input behavior; a fresh integration review found no new issue.

Verified:

  • Short QA on final head 30635feae3d080c144b47fb854820376b0827116, M4Air/Grok through hidden Electron CDP: new-chat tile, genuine loaded-refusal-history strip, retained empty dimmed message box and blocked typing/paste passed. Ordinary Claude, Codex and OpenCode inputs remained editable. A fresh draft saved normally using the previously installed runtime. The copied old-origin draft did not restore in the newly leased renderer; saved-text retention while disabled after restart, full installation and image-chip interaction were not repeated on this head. The earlier full installation, draft-recovery and 32 named tests remain 02b48ca8c067 evidence. All owned processes stopped, ports were freed and all three real-config hashes stayed unchanged during this short run.
  • The full PR workflow, including its aggregate gate, passed. All three review threads are resolved.
  • Earlier full M4Air/Grok hidden Electron CDP compared main 299dcb86fc8a with 02b48ca8c067. Actual failure/download/Cancel/retry/unpack/check/install, exact saved @src/ draft preservation and recovery, and loaded refusal-history strip passed. The composer kept its position. Ordinary editable inputs worked in Claude, Codex and OpenCode.
  • On 02b48ca8c067, five named install-view, launch-lifecycle, picker and composer-action files passed all 32 tests. The owned rig was stopped and its ports released.

Runtime gaps: unread resume, final unreadable history/owned prompt cards, active dictation/agent Stop, signed-in responses, paired hosts and stale-focused recall. Paste checks used owned in-page ClipboardEvents; the system clipboard path was not certified. Many-pane performance is unmeasured. The setup command ran in both builds, but the requested default tab was absent in both; Claude’s displayed model differed between isolated profiles, with cause unproven. These observations do not establish a PR regression or model-default parity.

For Brennan’s review

Empty chat, same missing-runtime input:

Main Final 02b48ca8c067
Main missing-runtime chat Final approved tile and disabled box

Earlier full comparison on 02b48ca8c067, saved draft with the same persisted QA saved @src/ input:

Main Final
Main saved draft while runtime missing Final saved draft remains readonly while runtime missing

Earlier full comparison on 02b48ca8c067, loaded conversation with the same persisted refusal history:

Main Final
Main loaded history while runtime missing Final loaded history beside install strip

After successful installation, the exact saved draft and its suggestions recover:

Final saved draft recovered after installation

After the final sync with main:

Current head 30635feae3d080c144b47fb854820376b0827116, M4Air:

New chat: install tile and retained disabled message box Loaded conversation: install strip and disabled message box
Current head install tile and disabled composer Current head actual refusal history and install strip

Three places where the intended behavior matters:

@brennanb2025
brennanb2025 merged commit a54fd38 into main Oct 18, 2026
34 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/agy-chat-install-redesign branch October 19, 2026 04:33
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