Skip to content

fix(server): follow Windows Antigravity wrappers to the ACP pair - #3

Closed
cestercian wants to merge 465 commits into
mainfrom
cursor/antigravity-cmd-wrapper-8860
Closed

cestercian wants to merge 465 commits into
mainfrom
cursor/antigravity-cmd-wrapper-8860

Conversation

@cestercian

@cestercian cestercian commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

What Changed

Custom Antigravity binaryPath values that point at a Windows .cmd or .bat wrapper are no longer treated as the ACP process.

Resolution follows the launcher to agy_acp_server.exe (same directory, or a path the script invokes), then pairs that file’s same-directory localharness_external.exe. ACP spawn uses the unwrapped executable, so JSON-RPC stdio does not go through cmd.exe. A copied harness next to the wrapper is not enough.

Why

Windows wrappers failed the rigid sibling check, or passed it with a copied harness and then hung on ACP health/session start because resolveSpawnCommand routes .cmd/.bat through cmd.exe /c. Same-version pairing is preserved: the harness is always the sibling of the real ACP executable, including when that executable is the managed release.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes
Open in Web Open in Cursor 

shivamhwp and others added 30 commits September 15, 2026 13:07
…ingdotgg#11883)

Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
…dotgg#11906)

Co-authored-by: T3 Code Test <t3code-test@example.com>
…gg#11381)

Co-authored-by: yashranaway <yashranaway@users.noreply.github.com>
…ngdotgg#8309)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tgg#11958)

Co-authored-by: Antony <tnybyn@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
…folders (pingdotgg#12008)

The health probe launched the PyInstaller ACP binary every minute and force killed it, leaving about 1 GB of _MEI files per run. The probe now resolves the install on disk without spawning. Each ACP process gets its own temp directory under the profile that is removed when the runtime closes, and the driver sweeps the profile temp root on create.

Continues pingdotgg#11657 by Vita Skacel. Owned temp directory approach from pingdotgg#9626 by ariszz.

Co-authored-by: Vita Skacel <skacel.vita@gmail.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
maria-rcks and others added 26 commits September 20, 2026 20:34
)

Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: Exotic <118054752+extoci@users.noreply.github.com>
…g#12808)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…off (pingdotgg#12807)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…s page (pingdotgg#12536)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…2243)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
…2805)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
pingdotgg#12833)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…nch (pingdotgg#12623)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Custom binaryPath values that point at .cmd/.bat launchers were treated as
the ACP process and required localharness_external.exe in the wrapper
directory. Resolve the real agy_acp_server.exe (sibling or referenced),
pair its same-version harness, and spawn that executable so ACP stdio is
not routed through cmd.exe.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Sep 21, 2026
@cestercian cestercian closed this Sep 21, 2026
@cursor

cursor Bot commented Sep 21, 2026

Copy link
Copy Markdown

Yep — setlocal & "C:\release-a\agy_acp_server.exe" was matching as ignorable before we looked at the unquoted &. Metacharacter check now runs first, so that wrapper is rejected instead of following a later launch line. Added a regression test for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.