From 994e4b354bb3f0e4b3aa3a5f250e9da919ac890f Mon Sep 17 00:00:00 2001 From: Matias Baglieri <168452313+matiasbaglieri@users.noreply.github.com> Date: Sun, 9 Aug 2026 05:05:51 -0300 Subject: [PATCH] fix(compression): remove duplicate Antigravity project helper The release branch already includes the generic project-aware connection selection helper. Keep that implementation and remove the duplicate introduced while cherry-picking #9707. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --- .../services/antigravityProjectPersist.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/open-sse/services/antigravityProjectPersist.ts b/open-sse/services/antigravityProjectPersist.ts index 2ebddb97c0..1068c4d3ec 100644 --- a/open-sse/services/antigravityProjectPersist.ts +++ b/open-sse/services/antigravityProjectPersist.ts @@ -14,25 +14,6 @@ import { updateProviderConnection } from "@/lib/db/providers"; -/** - * Keep only Antigravity connections that already have a stored projectId when - * building the reset-aware pool (#8894). A connection without a projectId cannot - * be quota-scored, so leaving it in the pool only produces unrankable candidates. - */ -export function preferAntigravityConnectionsWithStoredProject( - connections: Array> -): Array> { - return connections.filter((connection) => { - const direct = connection.projectId; - const psd = connection.providerSpecificData as Record | undefined; - const psdProjectId = psd?.projectId; - return ( - (typeof direct === "string" && direct.trim().length > 0) || - (typeof psdProjectId === "string" && psdProjectId.trim().length > 0) - ); - }); -} - /** * Write `discoveredProjectId` onto both the `projectId` column and * `providerSpecificData.projectId` for `connectionId`, preserving any other