Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): sweep stale Antigravity _MEI orphans on Windows #12717

Closedmacodev00(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/12717/headopened View on GitHub

Showing 4 changed files with 59 additions and 2 deletions (loading 2).

x
0 of 4 viewed, 4 left
42 additions and 0 deletionsapps/server/src/provider/Drivers/AntigravityDriver.test.tsModified
View file
@@ -530,6 +530,48 @@
}).pipe(Effect.scoped),
​
+ it.effect(
+ "on Windows create, removes stale Antigravity-marked _MEI leftovers from the injected host temp",
+ () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const config = yield* ServerConfig;
+ const instanceId = ProviderInstanceId.make("antigravity-host-temp-sweep");
+ const hostTemp = yield* fs.makeTempDirectoryScoped({
+ prefix: "t3-antigravity-host-temp-",
+ });
+ const stale = path.join(hostTemp, "_MEI12239");
+ const unmarked = path.join(hostTemp, "_MEIother");
+ yield* fs.makeDirectory(stale, { recursive: true });
+ yield* fs.makeDirectory(unmarked, { recursive: true });
+ yield* fs.writeFileString(path.join(stale, "agy_acp_licenses.txt"), "agy");
+ yield* fs.writeFileString(path.join(unmarked, "payload.bin"), "pyinstaller");
+ yield* fs.utimes(stale, 1, 1);
+ yield* fs.utimes(unmarked, 1, 1);
+ yield* TestClock.setTime(Date.UTC(2026, 8, 20));
+ yield* AntigravityDriver.create({
+ instanceId,
+ displayName: "Sweep",
+ enabled: false,
+ config: AntigravityDriver.defaultConfig(),
+ environment: [],