Repository navigation
feat(native-chat): a chat whose host has no program to run shows Install in place of its composer - #29051
Conversation
f1376ad to
e1931b8
Compare
b51cf2e to
ddc824a
Compare
e1931b8 to
90a345d
Compare
ddc824a to
edcb3ec
Compare
90a345d to
7759b64
Compare
5c2cc7b to
59b548c
Compare
7759b64 to
eb7704d
Compare
59b548c to
540bd9d
Compare
eb7704d to
f1f170e
Compare
540bd9d to
f7c8053
Compare
f1f170e to
f861d95
Compare
f7c8053 to
724f8fd
Compare
724f8fd to
c5d0f57
Compare
f861d95 to
63d868e
Compare
d7d8e9b to
7b15c58
Compare
1ae472b to
13d2fda
Compare
26dfd2c to
aaa2b56
Compare
13d2fda to
ad8cc48
Compare
aaa2b56 to
a3b2598
Compare
807f56f to
d613efc
Compare
da7a206 to
bea2a26
Compare
ebde44d to
59649a4
Compare
faefb84 to
fff5133
Compare
15f39e9 to
b7b2d37
Compare
…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.
…ter the install 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
586a3f2 to
30ac0e1
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
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.
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
QA, round 2 (M4Air, 10-16, build of
2efa3308959before this revision's last fixes; Grok drove the hidden window over the Chrome DevTools Protocol only)QA, round 2b (M4Air, 10-16, build of
d871611d303, the current stack top; Grok over the Chrome DevTools Protocol only)Notes
managed-runtime.install.v1or doesn't mark the agent never shows the row; existing behavior.Differences from the common pattern
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)