mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 22:32:12 +03:00
Gemini code-assist review flagged race conditions in CAS checks, token rotation, and OAuth refresh paths where cached data could cause OAuth token family revocation. Reverted those callers to direct DB reads: - chatCore.ts: CAS reread (line 3077) + rotation detection (line 3168) → getProviderConnectionById - tokenRefresh.ts: staleness check before network refresh → getProviderConnectionById Health check paths (providerHealthAutopilot, tokenHealthCheck) retain cache — they are background sweeps where 5s staleness is acceptable.