Skip to content

fix(antigravity): open the real agy prompt in Terminal view - #1559

Merged
Juliusolsson05 merged 4 commits into
mainfrom
fix/native-agy-terminal
Nov 28, 2026
Merged

Juliusolsson05 merged 4 commits into
mainfrom
fix/native-agy-terminal

Conversation

@Juliusolsson05

Copy link
Copy Markdown
Owner

What changes

Choosing Antigravity in a workspace set to Terminal now opens the installed interactive agy prompt. Keyboard input, resizing, sign-in and native slash commands go to agy. Existing rendered sessions restore in ACP. Agent View for This Session… reopens the selected conversation in the other runtime. Starting an automated worker still uses ACP by default for Agent Code’s per-pane tools.

What a view switch must preserve

Agy owns the conversation identity. The native runtime observes only active-conversation and missing-target metadata from a private per-process pipe. On an explicit resume it waits for the requested ID before the old pane can be retired. A refusal, a different ID, exit, timeout or cancellation cleans up the candidate. The source is also rechecked for a changed conversation or a new ACP turn.

Verification

  • Live production registry test against the installed, signed-in agy in a trusted directory. Two panes in the same directory got distinct IDs. Typing, clearing a draft, resizing, the native /new command and switching from native to rendered and back passed. The native replacement confirmed the exact ID before the renderer could respond. No model request was submitted.
  • Nine native launches established the handoff signal. All six valid IDs emitted the matching active-stream record within 380–514 ms. The three absent IDs produced a refusal and no matching record.
  • Six explicit-resume regression cases failed before the acknowledgment guard and passed after it. Removing three renderer guards reproduced all four targeted regressions in a disposable copy.
  • The native terminal uses agy's own MCP configuration. Agent Code’s structured programmatic prompts and per-pane tools use the rendered ACP runtime. The signed distribution is a separate release.

Review dispositions

Finding Change
A view change could retire a source that changed while the new process started. Check identity and turn activity again before committing the handoff. Discard only the successor on failure.
Setting a view preference remotely could restart a pane. Keep the external command preference-only. An actual runtime switch goes through the user-facing picker.
An invalid explicit resume could appear successful while showing a different prompt. Check the local store, then require positive acknowledgment from the native process.

Staged decomposition and reproducible live check

Fixes #1558

@Juliusolsson05
Juliusolsson05 merged commit 7c9af43 into main Nov 28, 2026
2 checks passed
@Juliusolsson05
Juliusolsson05 deleted the fix/native-agy-terminal branch November 28, 2026 03:03
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.

bug(antigravity): Terminal view is missing for interactive agy

1 participant