Repository navigation
Antigravity install: one clear message in the chat, with the message box staying in place - #30001
Conversation
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
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 winAssert that the install slot blocks sends.
The composer mock always renders an enabled
<textarea>. The current assertions check visibility andunavailableHintonly. 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
📒 Files selected for processing: 24
src/main/node-runtime/managed-runtime-installation.test.tssrc/main/node-runtime/managed-runtime-installation.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-card.test.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-card.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-view.tssrc/renderer/src/components/managed-runtime/use-managed-runtime-install-card.tssrc/renderer/src/components/native-chat/NativeChatComposer.tsxsrc/renderer/src/components/native-chat/NativeChatComposerField.tsxsrc/renderer/src/components/native-chat/NativeChatEmptyPane.tsxsrc/renderer/src/components/native-chat/NativeChatInstallHero.tsxsrc/renderer/src/components/native-chat/NativeChatInstallSlot.tsxsrc/renderer/src/components/native-chat/NativeChatInstallStrip.tsxsrc/renderer/src/components/native-chat/NativeChatInstallTile.tsxsrc/renderer/src/components/native-chat/NativeChatStructuredSession.launch-lifecycle.test.tsxsrc/renderer/src/components/native-chat/NativeChatStructuredSession.test-harness.tsxsrc/renderer/src/components/native-chat/NativeChatStructuredSession.tsxsrc/renderer/src/components/native-chat/native-chat-composer-types.tssrc/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/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.
…hat Settings row exists
…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.
ce1cf97 to
a38b4d5
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 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 winGive the install hint precedence over the goal placeholder.
When a session is already in goal mode and the managed runtime becomes unavailable,
unavailableHintcan be set whilegoalMode.activeremains true. The current order hides the install explanation in the disabled composer. CheckunavailableHintfirst.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
📒 Files selected for processing: 14
src/renderer/src/components/managed-runtime/ManagedRuntimeInstallRow.tsxsrc/renderer/src/components/managed-runtime/managed-runtime-install-card.test.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-card.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-view.test.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-view.tssrc/renderer/src/components/native-chat/NativeChatComposer.tsxsrc/renderer/src/components/settings/AntigravityAccountsSection.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: 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.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments: 2
src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx: 1
203-204: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoffReduce the complexity of
NativeChatStructuredSession.React Doctor reports
react-doctor/no-high-complexity-react-functionfor 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, extractuseNativeChatInstallSlottogether with thecomposerReadyandlaunchoverride 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 valueReduce the complexity of
NativeChatComposerPane.React Doctor flags
NativeChatComposerPane(Line 48) for high control-flow complexity. This is a warning only. ThedisabledandhasPtyderivation 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
📒 Files selected for processing: 16
src/renderer/src/components/managed-runtime/managed-runtime-install-card.test.tssrc/renderer/src/components/managed-runtime/managed-runtime-install-card.tssrc/renderer/src/components/native-chat/NativeChatComposer.tsxsrc/renderer/src/components/native-chat/NativeChatComposerActions.test.tsxsrc/renderer/src/components/native-chat/NativeChatInstallSlot.tsxsrc/renderer/src/components/native-chat/NativeChatStructuredSession.launch-lifecycle.test.tsxsrc/renderer/src/components/native-chat/NativeChatStructuredSession.tsxsrc/renderer/src/components/native-chat/use-native-chat-dictation.tssrc/renderer/src/components/native-chat/use-native-chat-picker-state.test.tsxsrc/renderer/src/components/native-chat/use-native-chat-picker-state.tssrc/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 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.
|
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: Verified:
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:
Earlier full comparison on
Earlier full comparison on
After successful installation, the exact saved draft and its suggestions recover: After the final sync with main: Current head
Three places where the intended behavior matters: |









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
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:
02b48ca8c067versus main299dcb86fc8a, same missing-runtime input:Saved draft, same persisted
QA saved @src/input:Loaded conversation, same persisted refusal history:
After successful installation, the exact saved draft and its suggestions recover:
After the final sync with main
Current head
30635feae3d080c144b47fb854820376b0827116, M4Air:Testing
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 remain02b48ca8c067evidence. All owned processes stopped, ports were freed and all three real-config hashes stayed unchanged during this short run.30635feae3d080c144b47fb854820376b0827116, including static analysis/typecheck, all unit-test shards, relay integration, Linux/Windows packaging and the aggregate gate.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.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.Notes