You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(gateway): drop redundant per-access session-key case scan
migrateOrphanedSessionKeys already lowercases and merges every session
store key at gateway startup (idempotent, freshest wins), so the runtime
case-insensitive rescans were dead work: an O(N) scan per row on the
session-list path made list building O(N^2) and froze the gateway at
large stores, and it re-converged duplicates non-deterministically on
every access.
Make session-store resolution exact-only: remove findStoreKeysIgnoreCase
(plus its two copies), the scanLegacyKeys opt-out plumbing, and the
per-access scan loops. Runtime now assumes the canonical shape the
startup migration guarantees; explicit alias convergence (main -> work)
stays.
Add a migration test asserting mixed-case keys converge freshest-wins,
and move the gateway tests that asserted runtime case-variant resolution
to the post-migration shape.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
0 commit comments