Skip to content

feat(native-chat): a chat whose host has no program to run shows Install in place of its composer - #29051

Merged
brennanb2025 merged 6 commits into
mainfrom
brennanb2025/agy-chat-U2-install-chat-slot
Oct 17, 2026
Merged

brennanb2025 merged 6 commits into
mainfrom
brennanb2025/agy-chat-U2-install-chat-slot

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​52 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​52
Prod 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​115 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​107

ELI5

Antigravity's chat needs a separate program, its chat server, which Orca downloads for it. When chats fetched that program on their own, the first chat sat on "Working for Ns" for about 18 seconds with no progress and no way to cancel, and opening several chats started several downloads. This stack changes that: nothing downloads until the person clicks Install, with progress and Cancel in Settings and in the chat.

This PR is the chat's part. When a chat's agent needs that program and it isn't on the chat's host yet, the chat shows the Install row (#29049) right where the message box would be: click Install, watch the progress, cancel if you want. The chat can't be used before or during the download, and as soon as the install finishes the message box comes back with whatever you had typed. No agent needs such a program until #28595 (adds Antigravity), so nothing changes for anyone when this merges alone.

What Changed

This revision: the message box vanished while a host was still answering, for every chat agent other than Claude and Codex, leaving an empty space and then a layout shift when the answer arrived. It now stays, with sends held until the host answers, as the common pattern does. The PR also rides on the host now pushing install status (#29024, #29048) instead of being polled.

  • Before: a chat always showed its message box; a chat whose program was missing could only fail when you sent something.
  • After:
    • The chat chooses what its one input slot holds in one place, in this order: a history that can never load (unchanged), a question or approval card the agent already asked (unchanged, never hidden), Install while the host has nothing to run for this agent (including while its install runs, failed or was cancelled), otherwise the message box.
    • While the answer is still out, the message box stays and holds sends until the host answers, so no agent's chat loses its input box while loading. That covers the first status answer and a reachable host's agent list still loading (feat(acp): the app follows a host's managed runtime install state, shared by every surface #29048).
    • Anything runnable, whatever version, keeps the message box: an installed chat never shows setup controls, and an Update or Reinstall started from Settings leaves running chats usable. A copy of the program found outside Orca also keeps it.
    • If the host's install status can't be read, the message box stays and the host still refuses a send it can't run, with the existing error. "Couldn't check" is never treated as "not installed".
    • While Install (or the empty slot) holds the place, sends and slash commands are refused before they reach the host, so a hidden or queued action can't start the chat around the install.
    • What you had typed is kept in the chat's draft store and is in the message box when it returns.
    • While the Install row shows, no start-failure notice shows: nothing starts until the install lands, and the row says what to do. Without this, a notice like "Antigravity couldn't start. Send your message to try again." could sit above the row with no message box to send from (seen in QA after Remove stopped a live chat). Other notices (host offline, read errors) still show above the row.
    • The chat card's heading is semibold, like the question and approval cards beside it.
    • A hidden chat tab doesn't follow the host's install state; it catches up when shown.
    • Works for a chat on a remote or SSH host (the row talks to the chat's own host) and in folder workspaces.
  • Merged alone: no agent declares a managed program yet, so nothing changes for anyone.

Why

Choosing the slot in one place, beside the existing question and approval cards, means exactly one input surface is ever on screen and keyboard focus follows it. Disabling the message box instead would show a misleading placeholder ("Input is held by another device") and leave commands reachable. Gating the send path as well as hiding the box keeps the rule true even for actions that don't come from the visible box.

Linked Issue

N/A (maintainer; part of the stack that adds Antigravity to chat).

Visual Proof

N/A: no agent needs a downloaded program until #28595, which carries screenshots from remote Electron QA of the chat before, during and after an install.

Testing

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • One chat test with a fake agent: before the first status answer neither the message box nor Install shows; "not installed" shows Install in the slot; once the host reports it installed the message box returns and the typed draft is still there.

  • Lint and typecheck: PR CI.

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.

QA, round 2 (M4Air, 10-16, build of 2efa3308959 before this revision's last fixes; Grok drove the hidden window over the Chrome DevTools Protocol only)

  • A new Antigravity chat showed "Install Antigravity to start chatting." with "112 MB download." and nothing downloaded until Install. A second chat opened mid-download showed the same progress, and both chats got their message box in the same 150 ms sample when the install finished.

New chat blocked Second chat downloading Chat ready

QA, round 2b (M4Air, 10-16, build of d871611d303, the current stack top; Grok over the Chrome DevTools Protocol only)

  • The message box was present from the first frame of a new Grok chat and of a new Antigravity chat (no gap, no layout shift); for Antigravity, not installed, the install card replaced it 2 frames (51 ms) later. No frame ever had neither.

Grok chat first frame Antigravity install card

Notes

  • Same as the common pattern: the chat stays usable while an Update or Reinstall runs; only "nothing installed" blocks it. It is safe because an Update installs beside the running copy, so the old copy keeps working until the new one is in place.
  • Same as the common pattern: if the install status can't be read, the message box stays and the host's own refusal of a send it can't run is the final check; a question or approval the agent already asked keeps its card.
  • Mixed versions: a host that doesn't advertise managed-runtime.install.v1 or doesn't mark the agent never shows the row; existing behavior.
  • Stack: based on feat(acp): one install row shows and drives a managed runtime install, for Settings and chat #29049 (the install row).
  • PR author: @BrennanKB5

Differences from the common pattern

  • Intended: a chat whose host has nothing to run shows Install in place of its message box, rather than a send-blocked message box plus a link to settings; this is the requested behavior (the same button in Settings and in the chat, and the chat unusable until installed) and uses the same row as Settings.
  • Intended: while a reachable host's agent list or its first install status answer is still out, sends are held for every chat agent other than Claude and Codex (whose programs no host installs), not only for Antigravity. Which agents a host installs is learned from that host's list, so the app has no hard-coded list to narrow it by. The message box itself stays, as in the common pattern; an offline host doesn't hold sends.
  • Intended: while the Install row shows, the chat shows no start-failure notice, where the common pattern says "not installed" both in a banner and on the send button; one failure is said in one place.

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)
  • 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)

@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from f1376ad to e1931b8 Compare October 15, 2026 07:46
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from b51cf2e to ddc824a Compare October 15, 2026 07:46
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from e1931b8 to 90a345d Compare October 15, 2026 08:39
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from ddc824a to edcb3ec Compare October 15, 2026 08:39
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from 90a345d to 7759b64 Compare October 15, 2026 13:34
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch 3 times, most recently from 5c2cc7b to 59b548c Compare October 15, 2026 13:57
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from 7759b64 to eb7704d Compare October 15, 2026 14:24
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from 59b548c to 540bd9d Compare October 15, 2026 14:24
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from eb7704d to f1f170e Compare October 15, 2026 16:03
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from 540bd9d to f7c8053 Compare October 15, 2026 16:03
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from f1f170e to f861d95 Compare October 15, 2026 16:30
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from f7c8053 to 724f8fd Compare October 15, 2026 16:30
@brennanb2025
brennanb2025 marked this pull request as ready for review October 15, 2026 17:09
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from 724f8fd to c5d0f57 Compare October 15, 2026 19:57
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from f861d95 to 63d868e Compare October 15, 2026 19:57
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch 2 times, most recently from d7d8e9b to 7b15c58 Compare October 16, 2026 01:33
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch 2 times, most recently from 1ae472b to 13d2fda Compare October 16, 2026 03:21
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch 2 times, most recently from 26dfd2c to aaa2b56 Compare October 16, 2026 03:25
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from 13d2fda to ad8cc48 Compare October 16, 2026 03:25
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from aaa2b56 to a3b2598 Compare October 16, 2026 03:27
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch 2 times, most recently from 807f56f to d613efc Compare October 16, 2026 19:43
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch 3 times, most recently from da7a206 to bea2a26 Compare October 16, 2026 22:11
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch from ebde44d to 59649a4 Compare October 16, 2026 22:11
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch 2 times, most recently from faefb84 to fff5133 Compare October 17, 2026 00:43
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U1b-install-row branch 2 times, most recently from 15f39e9 to b7b2d37 Compare October 17, 2026 02:03
@brennanb2025
brennanb2025 changed the base branch from brennanb2025/agy-chat-U1b-install-row to main October 17, 2026 04:33
…all in place of its composer

The chat's one input slot is chosen in one place: a final read refusal, then an owned prompt card,
then Install while the host has nothing runnable (its install included), then the composer. Until
the first status answer the slot stays empty instead of flashing either. Send and slash commands are
refused while Install holds the slot, so nothing hidden reaches the host. The draft stays in its
store and is there when the composer returns. A failed status read leaves the composer; the host
remains the final refusal.
…ent list says, and say nothing about sending while Install shows

- While the host's capabilities or agent list are still loading for a chat's agent, the slot stays
  quiet instead of flashing the composer.
- While the install row holds the composer's place, a failed start's notice ("Send your message
  to try again", Retry) is left out: nothing starts until the install lands.
- The chat install card's title is semibold like the other cards in that slot.
…nswer is out, its sends held, so no agent's chat loses its input box
…existing held-send reason instead of a flag of its own
…n, keeping the chat session view under its line limit
@brennanb2025
brennanb2025 force-pushed the brennanb2025/agy-chat-U2-install-chat-slot branch from 586a3f2 to 30ac0e1 Compare October 17, 2026 04:33
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3e67f12a-1db5-45a1-9edb-e99c8ee0dd9c
📥 Commits

Reviewing files that changed from the base of the PR and between 1ed735b and 30ac0e1.

📒 Files selected for processing: 10
  • src/renderer/src/components/managed-runtime/ManagedRuntimeInstallRow.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/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

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

📝 Walkthrough

Native chat now observes managed-runtime readiness and displays an install prompt when the agent is available but not installed. The composer remains visible while the installation state is unknown and returns after installation is reported. Sending is blocked while readiness is pending or the install prompt is shown. Tests cover these transitions and draft preservation. The install row’s chat title now uses a semibold font, and checking messages are available in six locales.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 30ac0

No identified issue prevents merging after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

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 6 functions across 4 files. (6 skipped: 6… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main user-facing change: showing Install in place of the composer when the host lacks the required program.
Description check Passed The description follows the required template and clearly documents the user impact, implementation, rationale, linked-issue exception, visual proof, testing, compatibility considerations, and checkli…
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: Description check

Explanation

The description follows the required template and clearly documents the user impact, implementation, rationale, linked-issue exception, visual proof, testing, compatibility considerations, and checklist status.

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 6 functions across 4 files. (6 skipped: 6 unsupported.)

Resolution

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

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • 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.

@brennanb2025
brennanb2025 merged commit 88f2771 into main Oct 17, 2026
53 of 55 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/agy-chat-U2-install-chat-slot branch October 17, 2026 06: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