Repository navigation
fix(antigravity): send one fixed client identity on every agy connection - #50108
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Chats, model and command listings, text tasks, conversation copy and the host readiness check now all send the same ACP client identity to agy, instead of switching identity by agy version.
47d964c to
cc0a4c6
Compare
Reconcile the non-linear upstream v1.4.280 release tree directly from v1.4.280 so release-branch-only commits from v1.4.278/v1.4.279 do not carry over. Resolve conflicts in antigravity-dialect.ts (combine antigravityNotification with stablyai#50190 quota notices), acp-structured-lane.ts (keep AcpLaneTurnWatchers with observer under max-lines), acp-structured-acquire.ts (pass acquire: run to initializeAndObserveAcpSession), antigravity-acp-launch-spec.ts (keep stablyai#50108 fixed clientInfo and stablyai#50262 listsCommandsInChatFolder), and foreign-sqlite-reader-client.ts (keep 30s binder idle teardown alongside antigravitySummaries). Wrap top-level Zod schemas in antigravity-background-tasks.ts and antigravity-subagents.ts with lazyZodSchema for upstream's new zod-prefer-lazy-ratchet.
ELI5
When Orca connects to Antigravity's
agyover ACP, the first message carries a client identity. Orca now sends one fixed identity on every connection instead of switching on agy's version.What Changed
initializeOrca sends to agy now carries the sameclientInfo, the fallback identity agy connections already used. Before, the identity depended on the agy version.clientInfoat all before: at-rest slash-command discovery and the host readinessinitializeprobe (antigravity-host-acp.ts).agyClientInfo) is gone.AcpLaunchSpec.clientInfois now a plainImplementationrather than a function of the agy version, andacpClientInfo(spec, fallback?)drops its version argument.acpClientInfo(spec)like the other listing paths, so other ACP agents get Orca's identity there too, the same one their chats and model listings already send.Why
One constant is simpler than a version switch, keeps every agy connection consistent, and closes the two paths that sent no identity at all.
Linked Issue
None.
Visual Proof
N/A. Nothing in the UI changes. Only the identity in the ACP handshake to agy is different.
Testing
pnpm check:changedpasses (typecheck, lint, the tests that import these files). Review used a wire-level script that ranacpClientInfofor all three agy homes (agy's own, the Orca chat home and the legacy Orca home), the naming fallback and the readiness probe constant. All of them resolved to the fixed identity, and the other 18 ACP agents kept their Orca and naming identities. No test pinned the old version switch, and none was added: the change is a constant, and the AGENTS.md test rules don't call for pinning one. Tested on macOS only, without launching agy.Performance
None, because this only changes a constant in a handshake message that was already being sent.
Risk
The risky part is agy treating clients differently by identity. Before 1.5.1 that decided which models agy offered; since 1.5.1 every client gets every model. If a future agy build gated something on a client name, chats could be affected. Other agents only change during at-rest command discovery, where they now send Orca's identity instead of none, the same one their chats already send. Remote hosts pick this up when their orcad updates, and older paired phones are unaffected because the handshake runs on the host. Back out with a plain revert.
Level: Low
Review
One round: Codex review and a Claude reviewer. Neither found a P0, P1 or P2. Both checked that every agy
initializepath now sends the same identity. One P3 comment wording fix was applied.Agent skill upstream boundary
Notes
Security: no new inputs. Cross-platform: platform-neutral. Remote SSH: the change runs wherever orcad runs. Mobile: no phone change. Backwards compatibility: no saved data or wire contract between Orca processes changes.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)