Repository navigation
Conversation
|
Additional live UI verification on Clicked an existing harmless test conversation in Session History → Continue in New Session → Start New Session, with Antigravity and Focused handoff selected. No direct launcher invocation or mocked launch API in this run. The dialog closed, a fresh agy terminal opened, and its displayed handoff included the selected conversation and original transcript reference. The new conversation persisted a 1,379-character USER_INPUT record (SHA-256 ELI5: the normal history dialog successfully passed the selected conversation into a new Antigravity session. Generation still returned Dialog (workspace path masked): Actual terminal result (gray blocks redact account, machine, paths, and error ID): |
|
Authenticated follow-up, 2026-09-20: clicked Continue in New Session from history, then Start New Session in the real dialog in a hidden macOS renderer. Installed agy 1.2.7 received the generated context, inspected the disposable folder, read its verification context, answered that the task was complete, and returned to an idle composer. This supersedes the earlier authentication and dialog-path limitations. Earlier delayed-start and large-prompt hash checks remain applicable; Windows/WSL live continuation checks are still pending. |
|
Independent verification update:
Scoped verdict: Approve stacked with #21770 for the verified macOS and Windows continuation paths. WSL/SSH/paired-host execution and extreme startup/layout cases remain unverified. |
|
Independent verification (2026-09-20):
Verdict: approve with #21770 in stack order for macOS/Windows continuation readiness. WSL/SSH/paired-host continuation remains unverified. No merge performed. |
* feat: render Antigravity terminal sessions in native chat Co-authored-by: haoliangli <[email protected]> * fix: keep direct SSH Antigravity chat on its execution host --------- Co-authored-by: haoliangli <[email protected]>
7dd79a8
into
nwparker/agy-onboarding-install
There was a problem hiding this comment.
Important
Direct-SSH Antigravity panes are routed to the local host for readiness because only remote: ids are recognized, so the new path waits out the full budget and then drops the context — and the process-presence fallback that previously covered SSH is removed. See the inline note.
Reviewed changes
- Host-confirmed Antigravity readiness —
waitForAntigravityDraftReadyresolves the exact pane withterminal.resolvePane, waits onterminal.wait/tui-idle, then re-verifies the same live, writable pane viaterminal.show(agentIdentity === 'antigravity'+stillOwnsPty), gated on the newterminal.antigravity-visible-readiness.v1capability. - Delivery routing — both new-tab and explicit-PTY delivery route Antigravity through that path and remove the process-presence fallback; Antigravity gains a 60 s readiness budget in
tui-agent-config. - Antigravity native-chat support — decoder, session-file resolution, transport capability guard, and supported-agent wiring (the stacked, separately merged #21660 commit that appears in this diff).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| settings: Pick<GlobalSettings, 'activeRuntimeEnvironmentId'> | null | undefined | ||
| ): Promise<boolean> { | ||
| const remotePty = parseRemoteRuntimePtyId(ptyId) | ||
| const target = remotePty?.environmentId |
There was a problem hiding this comment.
Direct-SSH PTY ids look like ssh:<connection>@@<relayPtyId> and are not recognized by parseRemoteRuntimePtyId (which only matches remote:), so target falls through to the active runtime — normally local — and terminal.resolvePane/terminal.wait/terminal.show are issued against the wrong host for an SSH pane. With the process fallback removed in agent-paste-draft.ts:167, SSH Antigravity continuation now stalls for the full budget and silently drops the context, whereas the old waitForExpectedAgentOnPty route reached the SSH host through window.api.pty.inspectProcess.
Technical details
# Direct-SSH Antigravity readiness has no host route
## Affected sites
- `src/renderer/src/lib/antigravity-draft-readiness.ts:27-30` — target selection only understands `remote:` ids.
- `src/renderer/src/lib/agent-paste-draft.ts:167-171` — antigravity refuses instead of using the process fallback; that fallback was the only SSH-capable readiness route.
## Required outcome
- Direct-SSH Antigravity delivery either resolves the SSH execution host correctly, or is refused immediately (before the 60 s wait and before any local-host RPC), so no execution query is issued against the wrong host.
## Suggested approach (optional)
- Detect SSH ownership with `parseAppSshPtyId(ptyId)` (the same helper `isRemoteInspectionPtyId` uses in `runtime-terminal-inspection.ts:88`) and return `false` up front when there is no SSH-capable wait RPC; or keep a narrowly scoped SSH fallback rather than removing the fallback wholesale.
## Open questions for the human
- Is direct-SSH Antigravity continuation intended to work, or is refusing it acceptable? The PR body lists SSH as unverified, but the removed fallback did attempt delivery there.



Latest verification — 2026-09-20: The actual Continue in New Session dialog now delivers context and completes a successful response on macOS. Native Windows exposed an additional 8-second PTY-binding deadline: observed binding took 8307 ms and context was lost. Follow-up #21770 fixes that deadline; repeating the actual Windows dialog with 8330 ms binding delivered context and completed successfully. Merge with #21770, not as the complete Windows fix alone. Local proof; Windows before/after. WSL/SSH continuation remains unverified. All checks at the unchanged PR head are green. Earlier screenshots and test notes below describe their original runs.
ELI5
A slow-starting Antigravity session could lose the context sent by Continue in New Session: Orca typed into the shell before the agent was ready. Orca now waits for the execution host to confirm Antigravity's empty input box before sending that context.
What Changed
Antigravity's generated-prompt delivery uses the existing host
terminal.wait/tui-idlepath, which checks the recorded composer screen. It resolves the exact pane, waits up to 60 seconds, and verifies that the same live, writable terminal still belongs to Antigravity before writing. A timeout, lost connection, replaced terminal, or different agent leaves the context unsent and uses the existing failure notice; process presence no longer bypasses readiness.Both new-tab and explicit-PTY delivery use this path. Paired terminals route to their encoded owner, even when another host is selected. The additive
terminal.antigravity-visible-readiness.v1capability prevents an older host's weaker readiness result from authorizing a paste. Other agents retain their current delivery behavior.Why
The renderer's old observer accepted a shell's bracketed-paste mode plus 1.5 seconds of quiet. A 12-second wrapper around the installed agy reproduced the bug: the context echoed before startup, then agy opened empty and saved no matching first turn.
The native
--prompt-interactiveflag works for ordinary initial prompts, but generated continuations can exceed Windows command-line limits. Reusing the host's existing screen classifier retains chunked delivery for large contexts without adding another terminal-screen heuristic or status cache.Linked Issue
Addresses #18088. Related slow-readiness work: #16660. Stacked on #21656 and the earlier recorded-screen readiness fix #21613.
Visual Proof
Same installed agy 1.2.7 and a wrapper that waits 12 seconds before executing it. The generated continuation uses synthetic, harmless history. Gray blocks redact the shell prompt and private path; screenshots are cropped to the relevant terminal area.
Before: raw paste appears above the agent banner; agy opens with an empty composer and no matching saved first turn.
After: agy receives the continuation as its first turn. The visible 401 is the existing authentication limitation, not a successful generation claim.
Testing
Successful model generation and actual macOS/Windows continuation dialog paths now pass at the stack head including #21770. Still unverified: WSL/SSH or paired-host execution, 60-second startup and narrow-terminal layouts. Remote/host-loss cases are unit tests. Older hosts intentionally require an upgrade for automatic Antigravity context delivery.
Review
Checklist