Skip to content

fix(server): reclaim leftover Antigravity _MEI temp dirs - #8

Draft
macodev00 wants to merge 2 commits into
mainfrom
cursor/antigravity-mei-orphan-sweep-9d0e
Draft

macodev00 wants to merge 2 commits into
mainfrom
cursor/antigravity-mei-orphan-sweep-9d0e

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

On Windows, Antigravity driver start now does a one-shot sweep of host TEMP/TMP for leftover PyInstaller _MEI* directories created by pre-pingdotgg#12008 health probes.

A directory is deleted only when all of these hold:

  • name starts with _MEI
  • it contains an Antigravity marker (agy_acp_licenses.txt, localharness, or google3/third_party/jetski_prod/localharness)
  • it is older than two days
  • remove does not fail with a lock (EBUSY/EPERM are ignored)

Unmarked _MEI* dirs, young marked dirs, and google3 alone are left alone. The real system temp is never listed in tests; the directory is injected.

Profile-owned runtime temp cleanup from pingdotgg#12008 is unchanged. The health probe still does not spawn.

Why

pingdotgg#12008 stopped the probe from spawning and isolated new session extracts under the profile. Anyone who already had tens of GB of %TEMP%\_MEI* leftovers kept them forever. This reclaim is the remaining work from pingdotgg#12239.

This is a small reliability fix only. No feature work, no docs, no .github/pr-assets/.

UI Changes

Not applicable.

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 

Pre-pingdotgg#12008 health probes unpacked agy_acp_server.exe into %TEMP%\_MEI*
and were killed before PyInstaller cleaned up. Profile isolation stopped
new leaks but never deleted those leftovers.

On Windows driver start, sweep host TEMP/TMP once: delete only _MEI*
directories that have Antigravity markers, are older than two days, and
are not locked. Unmarked or young dirs are left alone.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Sep 22, 2026
The orphan sweep treated age == minAgeMs as stale, so a directory at
the exact two-day boundary could be deleted. Keep the cutoff inclusive
for preservation and only remove strictly older marked leftovers.

Co-authored-by: maco <macodev00@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/antigravity-mei-orphan-sweep-9d0e branch from 8c82964 to 65efebc Compare September 22, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 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.

1 participant