Repository navigation
feat(antigravity): enable native ACP on nightly - #1613
Conversation
This comment has been minimized.
This comment has been minimized.
|
I addressed F1–F3 from the first review in
Ready for another review. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
chaodu-agent
left a comment
There was a problem hiding this comment.
Note
LGTM ✅ - Round-1 findings are fixed in e7a4940, and the maintainer has accepted the nightly breaking change for native ACP.
Consolidated review: #1613 (comment)
…ke (#1614) * ci(smoke-test): send integer ACP protocolVersion and poll for handshake The non-codex smoke-test handshake sent protocolVersion "2025-03-26" (an MCP-style string). ACP v1 requires an integer, so opencode, claude, gemini, kimi, cursor, mimocode and pi all rejected initialize with Invalid params and fell back to a bare --help check. For mimocode that fallback is intermittently non-zero, which failed PR #1613 twice. - send protocolVersion 1 to every agent - poll docker logs for up to 30s instead of a fixed 5s sleep - accept any initialize result with protocolVersion (agentInfo is optional in ACP), still printing the agent name when present - run the workflow when the workflow file itself changes * fix(review): match ACP reply by id, assert protocolVersion 1, fail on error, clean up attach - Select the initialize reply with id 1 per line (fromjson?), skipping notifications, logs, and malformed lines. - Require jsonrpc 2.0 and result.protocolVersion == 1; agentInfo stays optional. - A matched reply that is a JSON-RPC error or a different version now fails the leg instead of falling back to --help. The --help fallback applies only when no reply arrives within 30 s. - Track the background docker attach PID and clean up the container and attach client in an EXIT trap. * fix(review): only accept JSON-RPC responses in the ACP probe and fix stale comment - The selector now requires jsonrpc 2.0 and a result or error member, so an agent request or a JSON log line carrying id 1 no longer ends polling. - A JSON-RPC error with id null (parse error) is also treated as a reply and fails the leg. - Update the step comment: a rejected string version now fails the leg instead of falling through to --help. --------- Co-authored-by: chaodu-agent <274062505+chaodu-agent@users.noreply.github.com>
…ty-acp # Conflicts: # .github/workflows/docker-smoke-test.yml
c703e10
|
Note LGTM ✅ - What This PR DoesThe How It Works
Findings
Finding Details🟢 F1: Helm exampleVerified against the chart: 🟢 F2: Session recovery
🟢 F3: Legacy adapter section
🟢 F4 / F5Unchanged from round 1. Release and pre-beta behavior does not change. The capability check runs on native per-arch runners and fails before 🟢 F6: Merge from
|
What problem does this solve?
The legacy Antigravity adapter extracts text from ACP prompts, leaving Discord image attachments as URLs. Start Google's native
agy acpserver by default innightly-antigravityso nightly users can try direct image input during the transition to native ACP.Refs #1612
Discord Discussion URL: https://discord.com/channels/1491295327620169908/1573731943286313142
Review Contract
Goal
Enable native ACP on the Antigravity nightly image. Keep the wrapper available as an opt-out for nightly users who need existing sessions.
Non-goals
Switching the default for release and pre-beta images and converting legacy session IDs are future work.
Accepted Residual Risks
Proposed for maintainer approval. Nightly deployments that inherit the image's command will start native ACP. A legacy wrapper session ID can pass native
session/loadand then fail withtrajectory not foundon the next prompt. Users can explicitly pincommand = "agy-acp"withargs = []before updating a nightly deployment to keep using existing wrapper-backed sessions. They can start a new thread when switching to native ACP.Acceptance Criteria
agy acpandagy acp --login. The package defaults and CLI pins for release and pre-beta remain at their previous values.agy-acpbinary, and the guide documents the opt-out and session compatibility.Follow-ups
Decide how to migrate saved wrapper session IDs before changing the release default. Keep #1612 open for that follow-up.
At a Glance
Prior Art & Industry Research
agy acpandagy acp --loginin the CLI. Google ACP docsProposed Solution
Set the native command and sign-in command in the Antigravity nightly build arguments. The shared package target keeps the wrapper command and auth program as its defaults. The nightly workflow checks the image's native command, auth command, available wrapper binary, and
initializeimage capability before passing the digest to the tagging job.Why this approach?
Nightly users can exercise native image input while the project gathers migration feedback. Existing deployments can pin the adapter in OpenAB configuration, and release and pre-beta users continue to get the existing default.
Alternatives Considered
Switching all images together would activate native ACP in release deployments before the transition period. Adding an image shim to the wrapper would create an additional attachment path alongside the vendor's native implementation.
Validation
/modelsswitching, and nativesession/loadafter restart passed.session/loadaccepted a wrapper session ID, but its next prompt failed withtrajectory not found. A prompt addressed using the underlying Antigravity conversation ID ran successfully.agy-acp,agy auth, and Antigravity CLI 1.2.13. The nightly-override build passed the offline native ACP smoke check, including image capability and the legacy binary.Discord E2E screenshots
Direct image recognition. The model reads
Q6M-27Xand identifies the three shapes and colors.Model switch and restart continuation.
/modelsswitches to Gemini 4 Hydrogen, and the same thread recallsMAPLE-803after restart.