mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 17:52:31 +03:00
Upstream #8894 added an import for preferAntigravityConnectionsWithStoredProject from ../antigravityProjectPersistence.ts in quotaStrategies.ts, but the module itself was never committed — the file doesn't exist anywhere in git history on either side of the merge. Since Next.js's instrumentation hook must load this import chain successfully at boot, the missing module was fatal: the dev server crashed entirely on every fresh start (not just the affected route). Reconstructed conservatively per the call site and the changelog note ("prefer Antigravity connections with stored project"): reorders connections so ones with an already-known projectId (checked via both the direct column and the providerSpecificData.projectId fallback, matching the shape written by antigravityProjectPersist.ts) come first. Fail-open — reorders only, never excludes a connection, consistent with this codebase's established pattern for capability/preference filters elsewhere in combo/. ⚠️ base-red inherited: #9298