Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Related but different: #22429 is about the 16-folder cap evicting a folder. #35611 and #38511 are about Antigravity native and plugin commands never reaching a folder. This report is about a healthy Antigravity refresh erasing folders the registry already scanned.
Area
apps/server
Steps to reproduce
- Sign in to Antigravity and open a thread in a project that has project skills (for example
.agents/skills/<name>/SKILL.md). - Type
$. The registry scans the folder and stores its snapshot, and the project skills are listed. - Let Antigravity publish any machine update: a health check, a usage refresh, or a scan of another folder (each
SubscriptionRef.updateon its metadata publishes the whole draft). - Read the provider list again. The Antigravity entry has
workspaceSnapshots: [].
Deterministic repro on main with a regression test in apps/server/src/provider/ProviderRegistry.test.ts: scan /project and /plain, then merge a healthy Antigravity snapshot that carries workspaceSnapshots: [].
const scanned = ["/project", "/plain"].reduce<ServerProvider>(
(provider, cwd) =>
ProviderRegistry.upsertProviderWorkspaceSnapshot(provider, cwd, {
...signedIn,
skills: [{ name: "review", path: `${cwd}/SKILL.md`, enabled: true }],
}),
signedIn,
);
ProviderRegistry.mergeProviderSnapshot(scanned, { ...healthCheck, workspaceSnapshots: [] }).workspaceSnapshots; // [] on mainExpected behavior
A healthy refresh keeps the folders the registry scanned. A folder Antigravity reports from its own session replaces only that folder's entry. Snapshots still clear when Antigravity is disabled, signed out, or not installed (installed: false with status: "error").
Actual behavior
mergeProviderSnapshot replaces previousProvider.workspaceSnapshots whenever nextProvider.workspaceSnapshots !== undefined. Antigravity is the only provider that publishes this field, and its draft holds only the folders its own sessions saw ([] before any session). So every Antigravity publish erases every registry-scanned folder, along with its project skills and per-folder commands, until each folder is scanned again. After a session in one folder, the same publish erases every other scanned folder.
Impact
Major degradation or frequent failure
Version or commit
main @ e8c4824
Environment
Linux, Antigravity provider, server-side merge logic (independent of client)
Logs or stack traces
$ vp test run apps/server/src/provider/ProviderRegistry.test.ts -t "keeps scanned folders"
FAIL |t3| src/provider/ProviderRegistry.test.ts > ProviderRegistry > ProviderRegistry.layer > Antigravity saved account > keeps scanned folders through health checks until Antigravity cannot run
AssertionError: expected [] to deeply equal [ { cwd: '/project', …(3) }, …(1) ]
- Expected
+ Received
- [
- {
- "checkedAt": "2026-09-05T00:00:00.000Z",
- "cwd": "/project",
- "skills": [ { "enabled": true, "name": "review", "path": "/project/SKILL.md" } ],
- "slashCommands": [ { "name": "plan" } ],
- },
- {
- "checkedAt": "2026-09-05T00:00:00.000Z",
- "cwd": "/plain",
- "skills": [ { "enabled": true, "name": "review", "path": "/plain/SKILL.md" } ],
- "slashCommands": [ { "name": "plan" } ],
- },
- ]
+ []
Test Files 1 failed (1)
Tests 1 failed | 92 skipped (93)Workaround
Opening the composer in the folder again starts a new scan, which restores its skills until the next Antigravity publish.
Activity